Improper Handling of Windows Device Names in Werkzeug - CVE-2025-66221

 

Improper Handling of Windows Device Names in Werkzeug - CVE-2025-66221

Published: December 1, 2025


Vulnerability identifier: #VU118856
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-66221
CWE-ID: CWE-67
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: The Pallets Projects
Affected software:
Werkzeug

Detailed vulnerability description

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to the "safe_join" function allows path segments with Windows device names. A remote attacker can cause reading of the file to hang indefinitely.


How to mitigate CVE-2025-66221

Install updates from vendor's website.

Sources