Vulnerability · Published May 6, 2024 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity cross-site request forgery in werkzeug from pallets. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.4% (higher than 89% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.4%top 11.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Metasploit

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-werkzeug2.2.2-3+deb12u1DEBIAN-CVE-2024-34069
Debian:13python-werkzeug3.0.3-1DEBIAN-CVE-2024-34069
Debian:14python-werkzeug3.0.3-1DEBIAN-CVE-2024-34069
PyPIwerkzeug3.0.3GHSA-2g68-c3qc-8985
PyPIwerkzeug3.0.3PYSEC-2026-2043
Ubuntu:22.04:LTSpython-werkzeug2.0.2+dfsg1-1ubuntu0.22.04.2USN-6799-1
Ubuntu:22.04:LTSpython-werkzeug2.0.2+dfsg1-1ubuntu0.22.04.2UBUNTU-CVE-2024-34069
Ubuntu:24.04:LTSpython-werkzeug3.0.1-3ubuntu0.1UBUNTU-CVE-2024-34069
Ubuntu:24.04:LTSpython-werkzeug3.0.1-3ubuntu0.1USN-6799-1

Affected products (as reported)

VendorProductVersions
pallets werkzeug < 3.0.3

Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

References