CVE-2025-66221

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. send_from_directory uses safe_join to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely. This issue has been patched in version 3.1.4.
Configurations

Configuration 1 (hide)

AND
cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*

History

07 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) Werkzeug es una completa biblioteca de aplicaciones web WSGI. Antes de la versión 3.1.4, la función safe_join de Werkzeug permite segmentos de ruta con nombres de dispositivos de Windows. En Windows, existen nombres de dispositivos especiales como CON, AUX, etc. que están implícitamente presentes y son legibles en cada directorio. send_from_directory utiliza safe_join para servir archivos de forma segura en rutas especificadas por el usuario bajo un directorio. Si la aplicación se está ejecutando en Windows, y la ruta solicitada termina con un nombre de dispositivo especial, el archivo se abrirá correctamente, pero la lectura se colgará indefinidamente. Este problema ha sido parcheado en la versión 3.1.4.

Information

Published : 2025-11-29 03:16

Updated : 2026-10-07 20:10


NVD link : CVE-2025-66221

Mitre link : CVE-2025-66221

CVE.ORG link : CVE-2025-66221


JSON object : View

Products Affected

microsoft

  • windows

palletsprojects

  • werkzeug
CWE
CWE-67

Improper Handling of Windows Device Names