Skip to main content
CVE-2026-102598VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2026-102598· Medium 6.3

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

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10python-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=stonkingOther threatsAffected
  • =3.1.5-1
  • =3.1.8-1
Fixed in–
Ubuntu 26.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=resoluteOther threatsAffected
  • =3.1.3-2
  • =3.1.4-1
  • =3.1.5-1
Fixed in–
Ubuntu 24.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=nobleOther threatsAffected
  • 2.2.2-3 – 3.0.1-3ubuntu0.2
6 affected builds
Fixed in–
Ubuntu 22.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=jammyOther threatsAffected
  • 1.0.1+dfsg1-2 – 2.0.2+dfsg1-1ubuntu0.22.04.3
5 affected builds
Fixed in–
Ubuntu 20.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=focalOther threatsAffected
  • 0.14.1+dfsg1-4 – 0.16.1+dfsg1-2ubuntu0.2
7 affected builds
Fixed in–
Ubuntu Pro 18.04 LTSpython-werkzeugpkg:deb/ubuntu/python-werkzeug?arch=source&distro=esm-infra/bionicOther threatsAffected
  • 0.12.2+dfsg1-2 – 0.14.1+dfsg1-1ubuntu0.2+esm1
6 affected builds
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

Community reviews

Loading reviews…