First published: Fri Oct 25 2024(Updated: )
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.
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
pip/Werkzeug | <=3.0.5 | 3.0.6 |
IBM Storage Defender Resiliency Service | <=2.0.0 - 2.0.9 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-49766 has a moderate severity due to potential data access issues caused by unsafe path handling.
To fix CVE-2024-49766, update Werkzeug to version 3.0.6 or higher.
CVE-2024-49766 affects applications using Werkzeug versions up to 3.0.5 and Python versions prior to 3.11 on Windows.
CVE-2024-49766 exploits a vulnerability in the `os.path.isabs()` function failing to catch UNC paths.
A workaround for CVE-2024-49766 is to avoid using Werkzeug's `safe_join()` with UNC paths until a proper patch is applied.