# CVE-2024-49766: Werkzeug safe_join not safe on Windows

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-10-25T19:22:36.380Z
- Modified: 2026-09-10T03:50:19.894Z
- Also known as: GHSA-f9vj-2wh5-fj8j, PYSEC-2026-2045
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pallets werkzeug: < 3.0.6
- werkzeug (PyPI): before 3.0.6
- palletsprojects werkzeug: before 3.0.6

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: 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`

## References

- <https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j> (vendor-advisory, web)
- <https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092> (fix, patch, web)
- <https://github.com/pallets/werkzeug/releases/tag/3.0.6> (release-notes, web)
- <https://security.netapp.com/advisory/ntap-20250131-0005/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49766> (advisory)
- <https://github.com/pallets/werkzeug> (package)
- <https://security.netapp.com/advisory/ntap-20250131-0005> (web)
- <https://pypi.org/project/werkzeug> (package)
- <https://github.com/advisories/GHSA-f9vj-2wh5-fj8j> (advisory)

## Sources

- CVE List: [CVE-2024-49766](https://www.cve.org/CVERecord?id=CVE-2024-49766), CVE Terms of Use, modified 2025-01-31
- GitHub Advisory Database: [GHSA-f9vj-2wh5-fj8j](https://github.com/advisories/GHSA-f9vj-2wh5-fj8j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-49766](https://nvd.nist.gov/vuln/detail/CVE-2024-49766), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2045](https://osv.dev/vulnerability/PYSEC-2026-2045), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-49766 · Whole record: https://cve.day/CVE-2024-49766.json · Rebuilt by cve.day 2026-11-25T22:58:47.348Z
