CVE-2024-34069: Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain
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.
Published May 6, 2024 · Updated Nov 18, 2026
Affected packages
Werkzeug
- Ecosystem
- PyPI
- Affected
- < 3.0.3
- Fixed in
- 3.0.3
- Check
pip show Werkzeug
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to Ry0taK, aungzayyanaing.
References
- 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/[email protected]/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ
- https://security.netapp.com/advisory/ntap-20240614-0004
- https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html
- https://github.com/pallets/werkzeug/releases/tag/3.0.3
- https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2026-2043.yaml
- https://pypi.org/project/werkzeug
- https://github.com/advisories/GHSA-2g68-c3qc-8985
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-102598
Werkzeug safe_join() allows Windows special device names
medium6.3Oct 5, 2026CVE-2026-21860
Werkzeug safe_join() allows Windows special device names with compound extensions
medium5.3Jan 8, 2026CVE-2024-49766
Werkzeug safe_join not safe on Windows
medium6.3Oct 25, 2024CVE-2024-49767
Werkzeug possible resource exhaustion when parsing file data in forms
medium7.5Oct 25, 2024
