PT-2026-38278 · Pypi · Python-Multipart
Published
2026-05-06
·
Updated
2026-05-16
·
CVE-2026-42561
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
python-multipart versions prior to 0.0.27
Description
A denial of service issue exists in the multipart part header parsing of the
MultipartParser when processing multipart/form-data. The parser lacked limits on the number of part headers and the size of individual part headers. An attacker could cause excessive CPU work, leading to CPU exhaustion and potential worker or event-loop delays in ASGI applications using frameworks like Starlette or FastAPI, by sending a request with a single very large header value or many repeated headers without terminating the header block. The affected parser states include HEADER FIELD START, HEADER FIELD, HEADER VALUE START, HEADER VALUE, and HEADER VALUE ALMOST DONE.Recommendations
Update to version 0.0.27 or later.
Enforce request body size limits at the server, proxy, or framework layer to reduce exposure.
Fix
DoS
Allocation of Resources Without Limits
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Python-Multipart