Advisory

PYSEC-2023-221

Also known as: CVE-2023-46136, GHSA-hrfv-mqp8-q5rw

Summary

The record has no summary.

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2023-10-25 18:17 UTC
Modified
2023-11-08 18:38 UTC

Affected packages and fixes

werkzeug

PyPI · All systems

Affected

  • introduced 0, fixed 2.3.8, introduced 3.0.0, fixed 3.0.1 (ecosystem)

Fixed versions

2.3.8, 3.0.1

Fix

  • Fixed version 2.3.8
    pip install --upgrade werkzeug==2.3.8
  • Fixed version 3.0.1
    pip install --upgrade werkzeug==3.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences