CVE-2024-49766Palletsprojects Werkzeug
Medium 6.3 No auth needed
Follow: this CVE · Palletsprojects · Palletsprojects Werkzeug We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 4.0
- 6.3
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Oct 25, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for Werkzeug.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | werkzeug |
< 3.0.6 |
3.0.6 |
pip install "werkzeug>=3.0.6" |
| PyPI | werkzeug |
< 3.0.6 |
3.0.6 |
pip install "werkzeug>=3.0.6" |
Per OSV / GitHub Advisories (GHSA-f9vj-2wh5-fj8j, PYSEC-2026-2045). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| palletsprojects | werkzeug | < 3.0.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory
- security.netapp.com Third Party Advisory