CVE-2025-66221
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.
Description as published by the source, in English.
Key facts
- Published
- 2025-11-29
- Last modified
- 2026-10-07
- Assigned by
- security-advisories@github.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.5 %
higher than 41 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Microsoft | Windows | all versions listed | Not affected |
| Palletsprojects | Werkzeug | < 3.1.4 | Affected |
Weakness type
-
CWE-67: Improper Handling of Windows Device Names
The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information…
References
- https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13
- https://github.com/pallets/werkzeug/releases/tag/3.1.4
- https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2
Related at Berigo
Articles
-
New malware puts its next move to a vote among four AI models
Same product
2026-09-26
Cisco Talos has analysed CLOSEDQUORUM, a Windows implant that hands the choice of its next action to four commercial AI models. Talos has not confirm…
-
A backdoor built from ordinary Windows tools keeps taking new documents
Same product
2026-09-26
On 21 September 2026 Securonix described a backdoor it calls TASK#STOMP, assembled from Windows Script Host, PowerShell and the Task Scheduler. It se…
-
New malware looks up its command server in a Polygon smart contract
Same product
2026-09-26
Blackpoint has found ChainScript, a Node.js remote access trojan spread through fake installers for Spotify, Zoom and Teams. Rather than trusting the…
-
The Sality botnet has been disrupted after 23 years
Same product
2026-09-26
US authorities and private partners announced on 1 September 2026 that the infrastructure behind the Sality malware has been disrupted. Sality has be…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.