Security mailing lists by PureSourceCode

CVE-2023-46136

HIGH 7.5CVSS 3.1

Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning

Werkzeug is a comprehensive WSGI web application library. In versions on the 3.x branch prior to 3.0.1 and on the 2.x branch prior to 2.3.8, 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 and 2.3.8.

Published
25 Oct 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-400CWE-787
Also known as
GHSA-hrfv-mqp8-q5rwPYSEC-2023-221
Sources
NVDJSONOSV GHSA-hrfv-mqp8-q5rwJSONOSV PYSEC-2023-221JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 8.0 CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV PyPA CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.7 CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD palletsprojects werkzeug
cpe:2.3:a:palletsprojects:werkzeug:*:*:*:*:*:*:*:*
< 2.3.8 2.3.8
NVD palletsprojects werkzeug
cpe:2.3:a:palletsprojects:werkzeug:3.0.0:*:*:*:*:*:*:*
= 3.0.0
OSV PyPI werkzeug >= 3.0.0, < 3.0.1 3.0.1
OSV PyPI werkzeug >= 2.0.0rc1, < 2.3.8 2.3.8
OSV PyPI werkzeug < 2.3.8; >= 3.0.0, < 3.0.1 2.3.8, 3.0.1

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 25 Oct 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Oct 2023)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Oct 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.