CVE-2024-49766 Werkzeug safe_join not safe on Windows

Medium 6.3 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2024-49766?

CVE-2024-49766 is a medium-severity vulnerability in pallets werkzeug, published on 25 Oct 2024.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2024-49766?

3 open source packages ship an affected version, including werkzeug and Werkzeug. It affects 1 product.

PackageAffectedFixed in
werkzeug PyPIAll versions3.0.6
werkzeug PyPIAll versions3.0.6
Werkzeug PyPIAll versions3.0.6

Products include Palletsprojects Werkzeug.

How do I fix CVE-2024-49766?

Upgrade werkzeug to 3.0.6 or later.

Is CVE-2024-49766 being exploited?

There is no known exploitation of CVE-2024-49766 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2026-KC63022, CLEANSTART-2026-LS94875, ECHO-9c5b-9fe7-f077, GHSA-f9vj-2wh5-fj8j, MINI-c474-jj9x-pjjm, MINI-h843-xcjh-979v and 2 more.

Is CVE-2024-49766 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free