# CVE-2026-102598: Werkzeug safe_join() allows Windows special device names

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/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.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-09-29T15:16:28.900Z
- Modified: 2026-10-15T14:56:11.020Z
- Also known as: GHSA-g6x2-hccm-hh4m, PYSEC-2026-4312
- Weaknesses: CWE-67
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Werkzeug is a comprehensive WSGI web application library. Prior to 3.1.9, the safe_join function used by send_from_directory can allow a NUL: special-device path because safe_join checks the Windows device name without first removing an empty NTFS ADS marker. The trigger is that an application runs on Windows with NTFS and serves a user-specified path ending in a special device name such as NUL:. The attack mechanism is that a requested path ends in a Windows special device name with an empty ADS marker. The impact is that the special device opens successfully and the file read hangs indefinitely. This issue is fixed in version 3.1.9.

(As written by CVE List.)

## Affected

- pallets werkzeug: < 3.1.9
- werkzeug (PyPI): before 3.1.9

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m> (web)
- <https://github.com/pallets/werkzeug/pull/3309> (web)
- <https://github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6> (web)
- <https://github.com/pallets/werkzeug/releases/tag/3.1.9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102598> (advisory)
- <https://github.com/pallets/werkzeug> (package)
- <https://pypi.org/project/werkzeug> (package)
- <https://github.com/advisories/GHSA-g6x2-hccm-hh4m> (advisory)

## Sources

- CVE List: [CVE-2026-102598](https://www.cve.org/CVERecord?id=CVE-2026-102598), CVE Terms of Use, modified 2026-09-29
- GitHub Advisory Database: [GHSA-g6x2-hccm-hh4m](https://github.com/advisories/GHSA-g6x2-hccm-hh4m), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-102598](https://nvd.nist.gov/vuln/detail/CVE-2026-102598), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4312](https://osv.dev/vulnerability/PYSEC-2026-4312), CC-BY-4.0, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-102598 · Whole record: https://cve.day/CVE-2026-102598.json · Rebuilt by cve.day 2026-11-25T22:59:41.474Z
