CVE-2024-49766
MEDIUM 6.3CVSS 4.0Werkzeug safe_join not safe on Windows
Werkzeug is a Web Server Gateway Interface web application library. On Python < 3.11 on Windows, os.path.isabs() does not catch UNC paths like //server/share. Werkzeug's safe_join() relies on this check, and so can produce a path that is not safe, potentially allowing unintended access to data. Applications using Python >= 3.11, or not using Windows, are not vulnerable. Werkzeug version 3.0.6 contains a patch.
- Published
- 25 Oct 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-f9vj-2wh5-fj8jPYSEC-2026-2045
- Sources
- NVDJSONOSV GHSA-f9vj-2wh5-fj8jJSONOSV PYSEC-2026-2045JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | palletsprojects | werkzeugcpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:* |
< 3.0.6 | 3.0.6 |
| OSV | PyPI | werkzeug | < 3.0.6 | 3.0.6 |
References
- https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092 · Patch, WEB, FIX
- https://github.com/pallets/werkzeug/releases/tag/3.0.6 · Release Notes, WEB
- https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20250131-0005/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-49766 · ADVISORY
- https://github.com/pallets/werkzeug · PACKAGE
- https://pypi.org/project/werkzeug · PACKAGE
- https://github.com/advisories/GHSA-f9vj-2wh5-fj8j · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 25 Oct 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Oct 2024)