Home / pallets / werkzeug / CVE-2024-49766
CVE-2024-49766: is it exploited, and which versions of pallets werkzeug are affected and fixed?
CVE-2024-49766 is a path traversal (reading or writing files outside the intended folder) vulnerability in pallets werkzeug. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: Werkzeug before 3.0.6 (GitHub advisory GHSA-f9vj-2wh5-fj8j). Fixed in 3.0.6 (GitHub advisory GHSA-f9vj-2wh5-fj8j). Severity: Medium (6.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:25 UTC.
What is CVE-2024-49766?
Werkzeug 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.
From the CVE record by GitHub_M, last updated January 31, 2025, 15:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pallets | werkzeug | < 3.0.6 |
As the CVE record by GitHub_M states it, last updated January 31, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | Werkzeug | < 3.0.6 | 3.0.6 | GHSA-f9vj-2wh5-fj8j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 31, 2025. Summary: Werkzeug safe_join not safe on Windows.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| palletsprojects | werkzeug | before 3.0.6 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:00 UTC.
How severe is CVE-2024-49766?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | 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 | GitHub_M |
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-49766 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 25, 2024)
- EPSS
- 0.78% probability of exploitation activity in the next 30 days, percentile 57.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j x_refsource_CONFIRM
- https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092 x_refsource_MISC
- https://github.com/pallets/werkzeug/releases/tag/3.0.6 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250131-0005/
When was it published, and where is the official record?
- Reserved
- October 18, 2024
- Published
- October 25, 2024, 19:22 UTC
- CVE record updated
- January 31, 2025, 15:02 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 08:00 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:25 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect werkzeug?
- Sep 29, 2026CVE-2026-102598 pallets werkzeug: improper Handling of Windows Device Names
- Feb 21, 2026CVE-2026-27199 pallets werkzeug: improper Handling of Windows Device Names
- Jan 8, 2026CVE-2026-21860 pallets werkzeug: improper Handling of Windows Device Names
- Nov 29, 2025CVE-2025-66221 pallets werkzeug: improper Handling of Windows Device Names
- Oct 25, 2024CVE-2024-49767 pallets werkzeug: denial of service (uncontrolled resource consumption)
- May 6, 2024CVE-2024-34069 pallets werkzeug: cross-site request forgery (CSRF)
- Oct 24, 2023CVE-2023-46136 pallets werkzeug: denial of service through slow algorithm
- Feb 14, 2023CVE-2023-25577 pallets werkzeug: denial of service (resources allocated without limits)
Questions about CVE-2024-49766
Is CVE-2024-49766 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.78% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pallets werkzeug are affected by CVE-2024-49766?
Werkzeug before 3.0.6, per the GitHub advisory GHSA-f9vj-2wh5-fj8j. The tables above give every range the sources list.
Which version fixes CVE-2024-49766?
3.0.6, per the GitHub advisory GHSA-f9vj-2wh5-fj8j. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-49766?
Medium (6.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-49766?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.