CVE-2024-49766
Werkzeug safe_join not safe on Windows
Reported by github_m · Published October 25, 2024
Werkzeug is fixed in 3.0.6 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Werkzeug | PyPI | 3.0.6 |
| superset | Wolfi | 4.0.2-r6 |
| airflow-3 | Chainguard | 3.2.0-r0 |
| py3-werkzeug | Chainguard | 3.0.6-r0 |
| mlflow | Chainguard | 2.21.0-r0 |
| kubeflow-jupyter-web-app | Wolfi | 1.9.2-r1 |
| airflow-2 | Chainguard | 2.11.1-r0 |
| py3-werkzeug | Wolfi | 3.0.6-r0 |
| airflow-core-2 | Chainguard | 2.11.1-r0 |
| airflow-3 | Wolfi | 3.2.0-r0 |
| kubeflow-volumes-web-app | Chainguard | 1.9.2-r1 |
| airflow | Chainguard | 2.10.5-r44 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pallets | werkzeug | < 3.0.6 |
| wolfi | superset | 0 |
| chainguard | airflow-3 | 0 |
| chainguard | py3-werkzeug | 0 |
| chainguard | mlflow | 0 |
| wolfi | kubeflow-jupyter-web-app | 0 |
| chainguard | airflow-2 | 0 |
| wolfi | py3-werkzeug | 0 |
| chainguard | airflow-core-2 | 0 |
| wolfi | airflow-3 | 0 |
| pallets | werkzeug | |
| chainguard | kubeflow-volumes-web-app | 0 |
| chainguard | airflow | 0 |
| wolfi | kubeflow-pipelines-visualization-server | 0 |
| wolfi | kubeflow-volumes-web-app | 0 |
| chainguard | superset | 0 |
| pallets | werkzeug | 0 |
| wolfi | emissary | 0 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| wolfi | mlflow | 0 |
…and 4 more
Timeline
- Oct 25, 2024 CVE Published
- Oct 25, 2024 Coalition ESS Score (15 in total, the first dated here)
- Oct 26, 2024 EPSS Score (30 in total, the first dated here)
- Jan 31, 2025 CVE Updated
- Jan 2, 2026 Security Advisory
- Sep 30, 2026 VulnCheck KEV Exploitation
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-49766
vulnetix vdb fixes CVE-2024-49766
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-49766/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/pallets/werkzeug/security/advisories/GHSA-f9vj-2wh5-fj8j x_refsource_CONFIRM
- https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092 x_refsource_MISC
- https://github.com/pallets/werkzeug/releases/tag/3.0.6 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-49766 advisory
- https://github.com/advisories/GHSA-f9vj-2wh5-fj8j advisory
- https://github.com/pallets/werkzeug url
- https://security.netapp.com/advisory/ntap-20250131-0005 advisory
- https://security.netapp.com/advisory/ntap-20250131-0005/ url