CVE-2024-34069: Werkzeug Werkzeug Debugger Vulnerable To Remote Vulnerability
HIGHCVE-2024-34069 is a HIGH (CVSS 7.5) werkzeug debugger vulnerable to remote vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Werkzeug libraries in the PyPI ecosystem. The issue involves werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain. Remediation is available by upgrading affected packages to version 3.0.3.
CVE-2024-34069 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-34069
To remediate this vulnerability, upgrade all affected Werkzeug dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install Werkzeug>=3.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show Werkzeug
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-34069, inspect your installed packages using pip:
pip show Werkzeug
Analyze the terminal output to locate any version of Werkzeug in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.3), your application is affected.
Note: The pip show Werkzeug command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Werkzeug, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-34069 Affected Werkzeug Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Werkzeug
|
PyPI |
< 3.0.3
|
3.0.3
|
References
Frequently Asked Questions
What is CVE-2024-34069?
Which Werkzeug versions are affected?
What version fixes CVE-2024-34069?
Is Werkzeug affected?
What is the CVSS score of CVE-2024-34069?
What CWE is associated with CVE-2024-34069?
How can I check PyPI dependencies for CVE-2024-34069?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2g68-c3qc-8985",
"modified" : "2025-02-21T21:00:47Z",
"published" : "2024-05-06T14:21:27Z",
"aliases" : [ "CVE-2024-34069" ],
"summary" : "Werkzeug debugger vulnerable to remote execution when interacting with attacker controlled domain",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "Werkzeug"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34069"
}, {
"type" : "WEB",
"url" : "https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pallets/werkzeug"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20240614-0004"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-06T14:21:27Z",
"nvd_published_at" : "2024-05-06T15:15:23Z"
}
}