CVE-2023-46136

NameCVE-2023-46136
DescriptionWerkzeug 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1054553

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-werkzeug (PTS)bullseye (security), bullseye1.0.1+dfsg1-2+deb11u1fixed
bookworm2.2.2-3vulnerable
sid, trixie3.1.3-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-werkzeugsourceexperimental3.0.1-1
python-werkzeugsourcebuster(not affected)
python-werkzeugsourcebullseye(not affected)
python-werkzeugsource(unstable)3.0.1-21054553

Notes

[bookworm] - python-werkzeug <no-dsa> (Minor issue)
[bullseye] - python-werkzeug <not-affected> (Vulnerable code introduced later)
[buster] - python-werkzeug <not-affected> (Vulnerable code introduced later)
https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw
Introduced by: https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5 (2.0.0rc1)
https://github.com/pallets/werkzeug/commit/b1916c0c083e0be1c9d887ee2f3d696922bfc5c1 (3.0.1)

Search for package or bug name: Reporting problems