CVE-2024-49766

MEDIUM
Published Oct 25, 2024 Modified Dec 3, 2025 CWE-22

Description

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.

Is your site exposed to CVE-2024-49766?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Weakness Type (CWE)

CWE-22 Path Traversal

Affected Products

Vendor Product
palletsprojects werkzeug
microsoft windows

References

Frequently Asked Questions

What is CVE-2024-49766? +
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. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2024-49766? +
CVE-2024-49766 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-49766? +
CVE-2024-49766 affects products from microsoft, palletsprojects, specifically: werkzeug, windows. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-49766? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-49766 — free, no signup required.