CVE Explorer
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"werkzeug","vendor":"pallets","versions":[{"status":"affected","version":"< 3.1.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-67","description":"CWE-67: Improper Handling of Windows Device Names","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13","tags":["x_refsource_MISC"],"url":"https://github.com/pallets/werkzeug/commit/4b833376a45c323a189cd11d2362bcffdb1c0c13"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/references/1
{"name":"https://github.com/pallets/werkzeug/releases/tag/3.1.4","tags":["x_refsource_MISC"],"url":"https://github.com/pallets/werkzeug/releases/tag/3.1.4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/references/2
{"name":"https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-hgf8-39gv-g3f2"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a0ec0a848181d69e9a5dd5dccb2861abb519386c1eb220aba7895d699a742b8e · sha256:ac9f08923a16996b… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.