Skip to content
Fencer Vulns
medium 5.3

CVE-2024-49766 json

Werkzeug safe_join not safe on Windows

published 2024-10-25 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-3031 , GHSA-f9vj-2wh5-fj8j , PYSEC-2026-2045

cvss
5.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

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.

Patch / fix

  • pypi werkzeug 3.0.6
  • palletsprojects werkzeug 3.0.6

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-49766 updated cvss 3.7

werkzeug: python-werkzeug: Werkzeug safe_join not safe on Windows

  • Red Hat Ansible Automation Platform 2 python3.11-werkzeug Red Hat Ceph Storage 5 python-werkzeug, python3-werkzeug Red Hat Ceph Storage 6 python-werkzeug Red Hat Ceph Storage 7 python-werkzeug Red Hat Enterprise Linux 8 python3-werkzeug Red Hat OpenShift Container Platform 4 python-werkzeug, python3-werkzeug
    +4 more products
    Red Hat OpenStack Platform 16.2 python-werkzeug, python3-werkzeug Red Hat OpenStack Platform 17.1 python-werkzeug, python3-werkzeug Red Hat Quay 3 quay/quay-rhel8 Red Hat Storage 3 python-werkzeug
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 6.3 CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CNA 4.0 6.3 CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/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
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi werkzeug
<3.0.6
3.0.6

Affected products

  • pallets werkzeug

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.