PYSEC-2023-221

En bref

Publiée
Mise à jour
CVE
CVE-2023-46136
Alias
GHSA-hrfv-mqp8-q5rw
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

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.

Paquets affectés

PaquetVersions
PyPI · werkzeugintroduced 0, fixed f3c803b3ade485a45f12b6d6617595350c0f03e2, fixed f2300208d5e2a5076cbbb4c2aad71096fd040ef9 ; introduced 0, fixed 2.3.8, introduced 3.0.0, fixed 3.0.1

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — PyPA Advisory Database