CVE-2024-34069 Werkzeug's improper usage of a pathname and improper CSRF protection results in the remote command execution

High 7.5 Published Updated

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.

PackageAffectedFixed in
werkzeug PyPIAll versions3.0.3
werkzeug PyPIAll versions3.0.3
Werkzeug PyPIAll versions3.0.3
Linux distribution packages (37)
python-werkzeug Red Hat:openshift_ironic:4.15::el9All versions0:2.2.3-3.el9
python3-werkzeug Red Hat:openshift_ironic:4.15::el9All versions0:2.2.3-3.el9
python-werkzeug Red Hat:openstack:16.2::el8All versions0:0.14.1-13.el8ost
python3-werkzeug Red Hat:openstack:16.2::el8All versions0:0.14.1-13.el8ost
python-werkzeug Red Hat:openstack:17.1::el8All versions0:2.0.1-9.el8ost
python3-werkzeug Red Hat:openstack:17.1::el8All versions0:2.0.1-9.el8ost
python-werkzeug Red Hat:openstack:17.1::el9All versions0:2.0.1-7.el9ost
python3-werkzeug Red Hat:openstack:17.1::el9All versions0:2.0.1-7.el9ost
python-Werkzeug SUSE:Enterprise Storage 7.1All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions0.14.1-150100.6.9.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Module for Basesystem 15 SP6All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Module for Package Hub 15 SP5All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Module for Package Hub 15 SP6All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Module for Public Cloud 12All versions0.12.2-10.16.1
python-Werkzeug SUSE:Linux Enterprise Module for Python 3 15 SP5All versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Linux Enterprise Module for Python 3 15 SP6All versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions0.14.1-150100.6.9.1
python-Werkzeug SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions0.14.1-150100.6.9.1
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions2.3.6-150400.6.9.1
python-Werkzeug SUSE:Manager Proxy 4.3All versions1.0.1-150300.3.8.1
python-Werkzeug SUSE:Manager Server 4.3All versions1.0.1-150300.3.8.1
python-Werkzeug openSUSE:Leap 15.5All versions1.0.1-150300.3.8.1
python-Werkzeug openSUSE:Leap 15.5All versions2.3.6-150400.6.9.1
python-Werkzeug-doc openSUSE:Leap 15.5All versions0.14.1-150100.6.9.1
python-Werkzeug openSUSE:Leap 15.6All versions2.3.6-150400.6.9.1
python-Werkzeug-doc openSUSE:Leap 15.6All versions0.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.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-40372, AZL-40466, CLEANSTART-2026-KK09084, CLEANSTART-2026-RC09498, CLSA-2026-1772410264, CLSA-2026-1782176240 and 22 more.

Is CVE-2024-34069 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free