CVE-2024-49766
Python vulnerability analysis and mitigation

Overview

Werkzeug, a Web Server Gateway Interface web application library, contains a vulnerability (CVE-2024-49766) affecting Python versions below 3.11 on Windows systems. The vulnerability was discovered and disclosed on October 25, 2024, where os.path.isabs() fails to catch UNC paths like //server/share. This vulnerability specifically impacts Werkzeug's safe_join() function, which relies on this check (GitHub Advisory, NVD).

Technical details

The vulnerability stems from a limitation in Python's os.path.isabs() function on Windows systems running Python versions prior to 3.11. The safe_join() function in Werkzeug relies on this check to validate paths, but due to this limitation, it can produce paths that are not safe when dealing with UNC (Universal Naming Convention) paths such as //server/share. The vulnerability has been assigned a CVSS v4.0 base score of 6.3 (Medium) with the vector string 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. The issue is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (GitHub Advisory, NVD).

Impact

When successfully exploited, this vulnerability could potentially allow unintended access to data through unsafe path manipulation. The impact is limited to applications running on Windows systems with Python versions below 3.11. Applications using Python 3.11 or higher, or running on non-Windows systems, are not affected by this vulnerability (GitHub Advisory, NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in Werkzeug version 3.0.6. Users are strongly advised to upgrade to this version to address the security issue. For systems that cannot be immediately upgraded, the primary mitigation is to ensure that the application is running on Python 3.11 or higher, or on a non-Windows operating system (GitHub Release, GitHub Advisory).

Community reactions

The security fix release has received positive community response, with multiple GitHub users reacting positively to the release announcement. The fix has been acknowledged and documented by major organizations including NetApp and Red Hat, who have assessed the impact on their products (GitHub Release, Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management