CVE-2025-66221 Details
Description
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.
A vulnerability exists in Werkzeug's safe_join function in versions prior to 3.1.4, allowing the use of Windows special device names as path segments. On Windows, device names like CON and AUX are always present and readable in any directory. The send_from_directory function, which relies on safe_join to serve files from user-specified paths, can be exploited by requesting a path that ends with a device name. While the file will be opened, the read operation will hang indefinitely. This issue has been addressed in Werkzeug version 3.1.4.
Users can upgrade to Werkzeug version 3.1.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-67 | Improper Handling of Windows Device Names | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| palletsprojects werkzeug | < 3.1.4 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 7, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Nov 29, 2025 | New CVE Received | [email protected] |