VDB
Sign up
HIGH7.5

PYSEC-2023-221

Quick fix

PYSEC-2023-221 — werkzeug: upgrade to the fixed version with the command below.

pip install --upgrade 'werkzeug>=f3c803b3ade485a45f12b6d6617595350c0f03e2'

Details

Werkzeug is a comprehensive WSGI web application library. If an upload of a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer. This allows an attacker to cause a denial of service by sending crafted multipart data to an endpoint that will parse it. The amount of CPU time required can block worker processes from handling legitimate requests. This vulnerability has been patched in version 3.0.1.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/werkzeug
Introduced in: 0Fixed in: f3c803b3ade485a45f12b6d6617595350c0f03e2
Fixpip install --upgrade 'werkzeug>=f3c803b3ade485a45f12b6d6617595350c0f03e2'

References