CVE-2024-34069: Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution
Noroxi assessment
Priority: This week (action score 60/100)
- A ready-made attack module is public (Metasploit); exploiting it takes no special expertise.
- A ready-made attack tool exists and the flaw can be exploited over the network without an account, so priority is at least “This week”.
- Probability of exploitation in the next 30 days: 3.3% (FIRST EPSS); higher than 88.8% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. Special conditions such as timing or configuration are required.
- Fixed version: pallets werkzeug 3.0.3; azl3 python-werkzeug 3.0.1-1 on Azure Linux 3.0 3.0.3-1; azl3 python-werkzeug 3.0.3-1 on Azure Linux 3.0 3.0.3-1.
Don’t wait for the next maintenance window. Upgrade to pallets werkzeug 3.0.3; azl3 python-werkzeug 3.0.1-1 on Azure Linux 3.0 3.0.3-1; azl3 python-werkzeug 3.0.3-1 on Azure Linux 3.0 3.0.3-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2025-03918
- GHSA-2g68-c3qc-8985
- DLA-4062-1
- openSUSE-SU-2024:14042-1
- openSUSE-SU-2026:11943-1
- PYSEC-2026-2043
- RHSA-2024:10696
- RHSA-2024:5810
- RHSA-2024:6016
- RHSA-2024:9975
- RHSA-2024:9976
- RHSA-2025:4664
- SUSE-SU-2024:1572-1
- SUSE-SU-2024:1591-1
- SUSE-SU-2024:1591-2
- SUSE-SU-2024:1608-1
- SUSE-SU-2024:1624-1
- SUSE-SU-2024:1624-2
- Published
- May 6, 2024
- Updated
- Jun 17, 2026
- EPSS
- 3.3% · 88th percentile
- CWE
- CWE-352
Report tools
Action score
60
This week
Don’t wait for the next maintenance window.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.3%
- Ready-made attack tool
- 29 / 60 · floor: at least 60
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · GitHub_M
- 7.5
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Weaponized exploit exists
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| palletsprojects | werkzeug | cpe:2.3:a:palletsprojects:werkzeug |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux11.0
- fedoraproject fedora38
- fedoraproject fedora40
- palletsprojects werkzeugbefore 3.0.3
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
pallets werkzeug
- < 3.0.3affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | python-werkzeug | before 1.0.1+dfsg1-2+deb11u2 | 1.0.1+dfsg1-2+deb11u2 |
| Debian:12 | python-werkzeug | before 2.2.2-3+deb12u1 | 2.2.2-3+deb12u1 |
| Debian:13 | python-werkzeug | before 3.0.3-1 | 3.0.3-1 |
| openSUSE:Leap 15.5 | python-Werkzeug | before 2.3.6-150400.6.9.1 | 2.3.6-150400.6.9.1 |
| openSUSE:Leap 15.5 | python-Werkzeug | before 1.0.1-150300.3.8.1 | 1.0.1-150300.3.8.1 |
| openSUSE:Leap 15.5 | python-Werkzeug-doc | before 0.14.1-150100.6.9.1 | 0.14.1-150100.6.9.1 |
| openSUSE:Tumbleweed | python-Werkzeug | before 3.1.9-1.1 | 3.1.9-1.1 |
| openSUSE:Tumbleweed | python-Werkzeug | before 3.0.3-1.1 | 3.0.3-1.1 |
| PyPI | werkzeug | before 3.0.3 | 3.0.3 |
| Red Hat:ceph_storage:7.1::el8 | ceph | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-base | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-base-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-common | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-common-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-debugsource | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-exporter-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-fuse | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-fuse-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-immutable-object-cache | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-immutable-object-cache-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-mds-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-mgr-debuginfo | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
| Red Hat:ceph_storage:7.1::el8 | ceph-mib | before 2:18.2.1-329.el8cp | 2:18.2.1-329.el8cp |
+96
Same product
palletsprojects: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-14322In Pallets Werkzeug before 0.15.5, SharedDataMiddleware mishandles drive names (such as C:) in Windows pathnames.47Plan
- CVE-2022-29361Improper parsing of HTTP requests in Pallets Werkzeug v2.1.0 and below allows attackers to perform HTTP Request Smuggling using a crafted HT41Plan
- CVE-2019-14806Pallets Werkzeug before 0.15.3, when used with Docker, has insufficient debugger PIN randomness because Docker containers share the same mac31Monitor
Published before and after this one in the same product
- ← EarlierCVE-2023-25577Feb 14, 2023 · Werkzeug may allow high resource usage when parsing multipart form data with many fields30Monitor
- ← EarlierCVE-2023-46136Oct 25, 2023 · Werkzeug vulnerable to high resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning30Monitor
- Later →CVE-2024-49766Oct 25, 2024 · Werkzeug safe_join not safe on Windows25Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| pallets werkzeug | 3.0.3 · description | Vendor (CNA) |
| azl3 python-werkzeug 3.0.1-1 on Azure Linux 3.0 | 3.0.3-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 python-werkzeug 3.0.3-1 on Azure Linux 3.0 | 3.0.3-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-werkzeug 2.3.7-2 on CBL Mariner 2.0 | 2.3.7-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-werkzeug 2.3.7-3 on CBL Mariner 2.0 | 2.3.7-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-werkzeug 2.3.7-3 on CBL-Mariner 2.0 | 2.3.7-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| debian:python-werkzeug | 2.2.2-3+deb12u1 · Debian:12 | Package registry (OSV) |
| opensuse:python-Werkzeug | 2.3.6-150400.6.9.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:python-Werkzeug-doc | 0.14.1-150100.6.9.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| PyPI:werkzeug | 3.0.3 | Package registry (OSV) |
| red hat:liboath | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:liboath-debuginfo | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:libpskc-debuginfo | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:oath-toolkit | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:oath-toolkit-debuginfo | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:oath-toolkit-debugsource | 0:2.6.12-1.el8cp · Red Hat:ceph_storage:7.1::el8 | Package registry (OSV) |
| red hat:openshift | 0:4.12.0-202408131833.p0.g1eb8682.assembly.stream.el8 · Red Hat:openshift:4.12::el8 | Package registry (OSV) |
| red hat:openshift-hyperkube | 0:4.12.0-202408131833.p0.g1eb8682.assembly.stream.el8 · Red Hat:openshift:4.12::el8 | Package registry (OSV) |
| red hat:python-jinja2 | 0:3.0.1-3.el9.1 · Red Hat:openshift_ironic:4.12::el9 | Package registry (OSV) |
| red hat:python-werkzeug | 0:0.14.1-13.el8ost · Red Hat:openstack:16.2::el8 | Package registry (OSV) |
| red hat:python3-jinja2 | 0:3.0.1-3.el9.1 · Red Hat:openshift_ironic:4.12::el9 | Package registry (OSV) |
| red hat:python3-werkzeug | 0:0.14.1-13.el8ost · Red Hat:openstack:16.2::el8 | Package registry (OSV) |
| suse:python-Werkzeug | 0.12.2-10.16.1 · SUSE:Linux Enterprise Module for Public Cloud 12 | Package registry (OSV) |
| suse:python-Werkzeug | 2.3.6-150400.6.9.1 · SUSE:Linux Enterprise Module for Python 3 15 SP5 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Metasploit module | exploit/multi/http/werkzeug_debug_rcePallete Projects Werkzeug Debugger Remote Code Executionexploit | 2015-06-28 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Metasploit-3235 d
- Published
- TodayNov 3, 2026+911 d
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-352 · Cross-Site Request Forgery (CSRF)CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
nvd-secondary
Root cause
State-changing requests rely on the session cookie the browser sends automatically; nothing verifies that the request came from the user’s own page.
The bug in code
The whole CWE-352 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
app.use(session({ cookie: { httpOnly: true } }));
app.post("/account/address", updateAddress);Fixed
app.use(session({ cookie: { httpOnly: true, sameSite: "lax" } }));
app.post("/account/address", csrfProtection, updateAddress);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (5 more)Show less
- github.com/pallets/werkzeug/security/advisories/GHSA-2g68-c3qc-8985
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/H4SH32AM3CTPMAAEOIDAN7VU565LO4IR/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HFERFN7PINV4MOGMGA3DPIXJPDCYOEJZ/
- security.netapp.com/advisory/ntap-20240614-0004/
- lists.debian.org/debian-lts-announce/2025/02/msg00026.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.