PyPI: werkzeug
CVE-2024-34069
Safety vulnerability ID: SFTY-20240506-40639
Safety legacy ID: pyup.io-71594
Werkzeug is a comprehensive WSGI web application library. The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.
Overview
Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain
Advisory
Werkzeug is a comprehensive WSGI web application library. The debugger in affected versions of Werkzeug can allow an attacker to execute code on a developer's machine under some circumstances. This requires the attacker to get the developer to interact with a domain and subdomain they control, and enter the debugger PIN, but if they are successful it allows access to the debugger even if it is only running on localhost. This also requires the attacker to guess a URL in the developer's application that will trigger the debugger.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20240506-40639/CVE-2024-34069
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34069
- https://github.com/advisories/GHSA-2g68-c3qc-8985
- https://github.com/pallets/werkzeug/commit/92a4589e9d0208e736b0af16a5bffac34498a827
- https://github.com/pallets/werkzeug/commit/d2d88908c8ac9ce786b46b8d14a00bf1e09c38fc
- https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985
- https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692
- https://nvd.nist.gov/vuln/detail/CVE-2024-34069
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ
- https://security.netapp.com/advisory/ntap-20240614-0004
- https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html
- https://github.com/advisories/GHSA-2g68-c3qc-8985
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
