CVE-2024-49766
Werkzeug safe_join not safe on Windows
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.3
Werkzeug safe_join not safe on Windows
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.
- Record
CVE-2024-49766- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2024-3031
6.3
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.
- Record
EUVD-2024-3031- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f9vj-2wh5-fj8j
6.3
Werkzeug safe_join not safe on Windows
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.
- Record
GHSA-f9vj-2wh5-fj8j- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
6.3
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.
- Record
CVE-2024-49766- CVSS 4.0
- 6.3 Medium
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 - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVBELL-CVE-2024-49766
5.3
CVE-2024-49766 does not affect BellSoft software
- Record
BELL-CVE-2024-49766- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSV
6.3
Werkzeug safe_join not safe on Windows
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.
- Record
CVE-2024-49766- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
Show 6 moreShow less
OSVGHSA-f9vj-2wh5-fj8j
6.3
Werkzeug safe_join not safe on Windows
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.
- Record
GHSA-f9vj-2wh5-fj8j- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVPYSEC-2026-2045
6.3
Werkzeug safe_join not safe on Windows
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.
- Record
PYSEC-2026-2045- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-11-02
OSVROOT-APP-PYPI-CVE-2024-49766
5.3
CVE-2024-49766 in rootio-Werkzeug - Patched by Root
Root has patched CVE-2024-49766 in the rootio-Werkzeug package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2024-49766- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1772410262 No score
TuxCare security update for werkzeug (3 CVEs)
TuxCare rebuilt werkzeug to address 3 CVEs. Fixed in 1.0.1.post1+tuxcare.
- Record
CLSA-2026-1772410262- Updated
- 2026-11-02
OSVCLSA-2026-1772583181 No score
TuxCare security update for werkzeug (2 CVEs)
TuxCare rebuilt werkzeug to address 2 CVEs. Fixed in 2.2.3.post3+tuxcare.
- Record
CLSA-2026-1772583181- Updated
- 2026-11-02
OSVCLSA-2026-1789453348 No score
TuxCare security update for werkzeug (4 CVEs)
TuxCare rebuilt werkzeug to address 4 CVEs. Fixed in 2.3.8.post3+tuxcare.
- Record
CLSA-2026-1789453348- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
werkzeugPyPI |
through 3.0.5 | 3.0.6 |
werkzeugTuxCare:PyPI From an advisory covering 3 CVEs |
1.0.1 up to 1.0.1.post1+tuxcare | 1.0.1.post1+tuxcare |
werkzeugTuxCare:PyPI From an advisory covering 2 CVEs |
2.2.3 up to 2.2.3.post3+tuxcare, plus listed versions 2.2.3.post1+tuxcare |
2.2.3.post3+tuxcare |
werkzeugTuxCare:PyPI From an advisory covering 4 CVEs |
2.3.8 up to 2.3.8.post3+tuxcare, plus listed versions 2.3.8.post1+tuxcare2.3.8.post2+tuxcare |
2.3.8.post3+tuxcare |
werkzeugPyPI |
before 3.0.6, plus listed versions 0.10.100.10.10.10.20.10.3 Show 45 moreShow less0.10.40.110.11.10.11.100.11.110.11.120.11.130.11.140.11.150.11.20.11.30.11.40.11.50.11.60.11.70.11.80.11.90.120.12.10.12.20.130.140.14.10.15.00.15.10.15.20.15.30.15.40.15.50.15.60.16.00.16.10.20.30.3.10.40.4.10.50.5.10.60.6.10.6.20.70.7.10.7.2 |
3.0.6 |
rootio-WerkzeugRoot:PyPI |
before 2.3.7+root.io.2 | 2.3.7+root.io.22.3.7+root.io.32.3.7+root.io.42.3.7+root.io.52.3.7+root.io.6 |
WerkzeugRoot:PyPI |
before 2.3.7+aikido.6 | 2.3.7+aikido.6 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-49766 is a medium vulnerability (CVSS 6.3) in Pallets Werkzeug, published October 25, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.78%, the 56th percentile. Fixed in werkzeug 3.0.6.
References
github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j
github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092
github.com/pallets/werkzeug/releases/tag/3.0.6
security.netapp.com/advisory/ntap-20250131-0005
nvd.nist.gov/vuln/detail/CVE-2024-49766
github.com/advisories/GHSA-f9vj-2wh5-fj8j
Left out here: 46 versions. The JSON record has them.