Python werkzeug: Prior to 3.1.9, the safe_join function used by send_from_directory can allow a NUL: special-device
Affects python-werkzeugSource GCVE Database
Not known to be exploited · CVSS 6.3 Medium · fixed in 3.1.9 : update python-werkzeug when convenient.
Data as of 24 Nov 2026, 22:28 UTC
- Patch
- Available – fixed in 3.1.9
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10python-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-102598 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-102598 (opens in a new tab)
- github.com/pallets/werkzeug/commit/8d77320bcdf3a34941ec06dcf16b03c065cd21b6 (opens in a new tab)
- github.com/pallets/werkzeug/pull/3309 (opens in a new tab)
- github.com/pallets/werkzeug/releases/tag/3.1.9 (opens in a new tab)
- github.com/pallets/werkzeug/security/advisories/GHSA-g6x2-hccm-hh4m (opens in a new tab)