CVE-2025-66221
published medium CVSS 4.0 · 6.3Werkzeug safe_join() allows Windows special device names
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pallets | — | werkzeug< 3.1.4 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | py3-werkzeug | Fixed | 3.1.4-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-openapi-coreaarch64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| Alpine Linux | v3.24 | py3-werkzeug | Fixed | 3.1.4-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-openapi-coreppc64le | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-openapi-cores390x | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-openapi-corex86_64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-openapi-coreaarch64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-openapi-coreppc64le | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-openapi-cores390x | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-openapi-corex86_64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-openapi-coreaarch64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-openapi-coreppc64le | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-openapi-cores390x | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-openapi-corex86_64 | Advisory build | 0.22.0-1.1 | OPENSUSE-SU-2025:15848-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pallets | werkzeug | < 3.1.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-67 CWE-67: Improper Handling of Windows Device Names
References
3Provider assertions
2GitHub_M · cna
Werkzeug safe_join() allows Windows special device names
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5d1fa2c63b2b1c85f6d7b55cf9d58eb90968da2964f2b4c2c3872509d90a53b2
- Ingested
- 23 Sep 2026, 08:56:35 UTC
- Source record
- Official CVE record