What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: pallets werkzeug 3.0.3; Pypi Werkzeug 3.0.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-34069 or the next vulnerability affects your stack