CVE catalog

CVE-2025-66221

python-werkzeug: CVE-2025-66221

[CVE catalog]

Severity
Medium · CVSS 6.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.51% · Oct 25, 2026

Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.4, Werkzeug's safe_join function allows path segments with Windows device names. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. send_from_directory uses safe_join to safely serve files at user-specified paths under a directory. If the application is running on Windows, and the requested path ends with a special device name, the file will be opened successfully, but reading will hang indefinitely. This issue has been patched in version 3.1.4.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-werkzeugsid3.1.9-1not affected
Debianpython-werkzeugforky3.1.9-1not affected
Debianpython-werkzeugtrixie3.1.3-2not affected
Debianpython-werkzeugbookworm2.2.2-3+deb12u1not affected
PyPIwerkzeugNot reported3.1.4fixed
CpewerkzeugNot reported3.1.4fixed
Alpinepy3-werkzeug3.243.1.4-r0fixed
Opensusepython-openapi-coretumbleweed0.22.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-werkzeugsourcesidNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourceforkyNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourcetrixieNot affectedunimportantNot reportedNot reported
Debianpython-werkzeugsourcebookwormNot affectedunimportantNot reportedNot reported
PyPIwerkzeugPyPINot reported3.1.4Not reportedGHSA-HGF8-39GV-G3F2Not reported
CpewerkzeugcpeNot reported3.1.4Not reportedNVD-CVE-2025-66221Not reported
Alpinepy3-werkzeugapk3.243.1.4-r0Not reportedALPINE-CVE-2025-66221Not reported
Opensusepython-openapi-corerpmtumbleweed0.22.0-1.1Not reportedOPENSUSE-SU-2025:15848-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-openapi-core]

    Details (1)
    • 0.23.1+git55-1.1 · noarch · tumbleweed

      Unknown · Fixed: 0.22.0-1.1

      Version impact unknown

      dsa · python-openapi-core · opensuse · tumbleweed

  • Source package: [python-openapi-core]

    Details (1)
    • 0.23.1+git55-1.1 · noarch · tumbleweed

      Unknown · Fixed: 0.22.0-1.1

      Version impact unknown

      dsa · python-openapi-core · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [python3-werkzeug]Not affected

    Source package: [python-werkzeug]

    Details (2)
    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

  • [python-werkzeug-doc]Not affected

    Source package: [python-werkzeug]

    Details (2)
    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

    • 2.2.2-3+deb12u1 · all · bookworm

      Not affected

      dsa · python-werkzeug · debian · bookworm

Observed:

References