{"id":"CVE-2024-49766","published":"2024-10-25T19:22:36Z","modified":"2025-01-31T15:02:48Z","title":"Werkzeug safe_join not safe on Windows","vendor":"pallets","product":"werkzeug","tier":"core","eol":null,"affectedVersions":[{"vendor":"pallets","product":"werkzeug","versions":["< 3.0.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-25T20:08:46.055184Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is in Werkzeug, a Web Server Gateway Interface web application library, where its safe_join() function fails to block UNC paths such as //server/share on Python versions before 3.11 running on Windows, because os.path.isabs() does not detect them. An attacker with network access and no authentication or user interaction could potentially produce a path that escapes the intended directory and gain access to data beyond what the application meant to expose, but only where the application runs on Python below 3.11 on Windows.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:22Z"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01036,"percentile":0.63098,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-09-30","exploitedFirstSeen":"2026-09-30","ransomware":true,"evidence":[{"url":"https://www.zscaler.com/resources/industry-reports/threatlabz-2026-ransomware-analysis.pdf","date":"2026-09-30"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092","tags":["x_refsource_MISC"]},{"url":"https://github.com/pallets/werkzeug/releases/tag/3.0.6","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20250131-0005/","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":["<3.0.6"],"patched":["3.0.6"],"from":["GHSA-f9vj-2wh5-fj8j","PYSEC-2026-2045"],"provenance":"source"}],"advisories":[{"id":"GHSA-f9vj-2wh5-fj8j","url":"https://github.com/advisories/GHSA-f9vj-2wh5-fj8j","severity":"MODERATE","ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":["<3.0.6"],"patched":["3.0.6"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-3031","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3031","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-10-25","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-49766","provenance":"source"},{"date":"2026-09-30","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.zscaler.com/resources/industry-reports/threatlabz-2026-ransomware-analysis.pdf","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":72.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 56 days ago"},{"name":"Known ransomware use","points":10.0,"detail":"VulnCheck KEV: Known"},{"name":"EPSS percentile","points":12.62,"detail":"percentile 0.6310"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":4.41,"detail":"base score 6.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2023-25577","published":"2023-02-14","fixed":"2.2.3","kev":false},{"cve":"CVE-2023-46136","published":"2023-10-24","fixed":"3.0.1","kev":false},{"cve":"CVE-2024-34069","published":"2024-05-06","fixed":"3.0.3","kev":false,"link":{"from":"CVE-2024-34069","to":"CVE-2024-49766","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.3","toFixed":"3.0.6","daysApart":172}]}},{"cve":"CVE-2024-49766","published":"2024-10-25","fixed":"3.0.6","kev":false},{"cve":"CVE-2024-49767","published":"2024-10-25","fixed":"3.0.6","kev":false},{"cve":"CVE-2026-21860","published":"2026-01-08","fixed":"3.1.5","kev":false},{"cve":"CVE-2026-102598","published":"2026-09-29","fixed":"3.1.9","kev":false}],"package":"PyPI:Werkzeug"}}