Skip to main content
← All vulnerabilities
CVE-2024-49766PYSEC-2026-2045GHSA-F9VJ-2WH5-FJ8J

Werkzeug safe_join not safe on Windows

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.0.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pallets werkzeug

    fixed in 3.0.6

  • werkzeugPyPI

    fixed in 3.0.6

References 3

GitHub · pallets/werkzeug