CVE-2024-34069 Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution
An attacker can execute code on a developer's machine by tricking them into entering the debugger PIN via a CSRF attack in Werkzeug's debugger.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-34069?
CVE-2024-34069 is a high-severity vulnerability in Debian Debian Linux, published on 6 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-352
Which versions are affected by CVE-2024-34069?
3 open source packages ship an affected version, including werkzeug and Werkzeug. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
werkzeug PyPI | All versions | 3.0.3 |
werkzeug PyPI | All versions | 3.0.3 |
Werkzeug PyPI | All versions | 3.0.3 |
Linux distribution packages (37)
python-werkzeug Red Hat:openshift_ironic:4.15::el9 | All versions | 0:2.2.3-3.el9 |
python3-werkzeug Red Hat:openshift_ironic:4.15::el9 | All versions | 0:2.2.3-3.el9 |
python-werkzeug Red Hat:openstack:16.2::el8 | All versions | 0:0.14.1-13.el8ost |
python3-werkzeug Red Hat:openstack:16.2::el8 | All versions | 0:0.14.1-13.el8ost |
python-werkzeug Red Hat:openstack:17.1::el8 | All versions | 0:2.0.1-9.el8ost |
python3-werkzeug Red Hat:openstack:17.1::el8 | All versions | 0:2.0.1-9.el8ost |
python-werkzeug Red Hat:openstack:17.1::el9 | All versions | 0:2.0.1-7.el9ost |
python3-werkzeug Red Hat:openstack:17.1::el9 | All versions | 0:2.0.1-7.el9ost |
python-Werkzeug SUSE:Enterprise Storage 7.1 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 0.14.1-150100.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Package Hub 15 SP5 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Package Hub 15 SP6 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Public Cloud 12 | All versions | 0.12.2-10.16.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Python 3 15 SP5 | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Module for Python 3 15 SP6 | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 0.14.1-150100.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 0.14.1-150100.6.9.1 |
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug SUSE:Manager Proxy 4.3 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug SUSE:Manager Server 4.3 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug openSUSE:Leap 15.5 | All versions | 1.0.1-150300.3.8.1 |
python-Werkzeug openSUSE:Leap 15.5 | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug-doc openSUSE:Leap 15.5 | All versions | 0.14.1-150100.6.9.1 |
python-Werkzeug openSUSE:Leap 15.6 | All versions | 2.3.6-150400.6.9.1 |
python-Werkzeug-doc openSUSE:Leap 15.6 | All versions | 0.14.1-150100.6.9.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Palletsprojects Werkzeug.
How do I fix CVE-2024-34069?
Upgrade werkzeug to 3.0.3 or later.
Is CVE-2024-34069 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-34069 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-40372, AZL-40466, CLEANSTART-2026-KK09084, CLEANSTART-2026-RC09498, CLSA-2026-1772410264, CLSA-2026-1782176240 and 22 more.