{"id":"CVE-2024-34069","published":"2024-05-06T14:44:38Z","modified":"2025-02-21T18:03:28Z","title":"Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution","vendor":"pallets","product":"werkzeug","tier":"tail","description":{"text":"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. This vulnerability is fixed in 3.0.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03397,"percentile":0.89127,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pallets/werkzeug/commit/3386395b24c7371db11a5b8eaac0c91da5362692","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240614-0004/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00026.html","tags":[]}],"priority":{"score":28.1,"factors":[{"name":"EPSS percentile","points":17.83},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"metasploit":[{"name":"Pallete Projects Werkzeug Debugger Remote Code Execution","module":"exploit/multi/http/werkzeug_debug_rce","type":"exploit","disclosureDate":"2015-06-28","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/werkzeug_debug_rce.rb"}],"first":{"date":"2015-06-28","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/werkzeug_debug_rce.rb"},"provenance":"source"},"vendorSlug":"pallets","affectedVersions":[{"vendor":"pallets","product":"werkzeug","versions":["< 3.0.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-06-12T19:54:35.623303Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Werkzeug","vulnerableRanges":["<3.0.3"],"patched":["3.0.3"],"from":["GHSA-2g68-c3qc-8985","PYSEC-2026-2043"],"provenance":"source"}],"summary":{"text":"The flaw is in the debugger component of Werkzeug, the Pallets WSGI web application library, which can allow code execution on a developer's machine. An attacker who can get a developer to interact with a domain and subdomain they control, and to enter the debugger PIN, and who can guess a URL in the developer's application that triggers the debugger, can execute code and reach the debugger even when it is bound only to localhost; no prior authentication is required, but user interaction is.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:19:05Z"},"euvd":{"id":"EUVD-2024-1358","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-23934","published":"2023-02-14","fixed":"2.2.3","kev":false},{"cve":"CVE-2023-25577","published":"2023-02-14","fixed":"2.2.3","kev":false},{"cve":"CVE-2023-46136","published":"2023-10-24","fixed":"3.0.1","kev":false,"link":{"from":"CVE-2023-46136","to":"CVE-2024-34069","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.1","toFixed":"3.0.3","daysApart":195}]}},{"cve":"CVE-2024-34069","published":"2024-05-06","fixed":"3.0.3","kev":false},{"cve":"CVE-2024-49766","published":"2024-10-25","fixed":"3.0.6","kev":false,"link":{"from":"CVE-2024-34069","to":"CVE-2024-49766","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.3","toFixed":"3.0.6","daysApart":172}]}},{"cve":"CVE-2024-49767","published":"2024-10-25","fixed":"3.0.6","kev":false,"link":{"from":"CVE-2024-34069","to":"CVE-2024-49767","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Werkzeug","fromFixed":"3.0.3","toFixed":"3.0.6","daysApart":172}]}},{"cve":"CVE-2026-21860","published":"2026-01-08","fixed":"3.1.5","kev":false}],"package":"PyPI:Werkzeug"}}