Low severity · published Jun 22, 2026
CVE-2026-53540
Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory
3.7
CVSS
0.3%
EPSS
No
On KEV
Description
Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.31, parse_form() did not validate the Content-Length header before using it to bound its chunked read of the request body. A negative Content-Length turned the bounded read into a read-until-EOF, so the entire body was loaded into memory in a single read instead of in fixed-size chunks. This vulnerability is fixed in 0.0.31.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 28% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
python-multipart · Kludex
< 0.0.31 · source: vendor, NVD
Affected product
PY
python-multipart
Kludex
More from python-multipart
7.5
CVE-2026-53539
Python-Multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service
7.5
CVE-2026-42561
Python-Multipart: Denial of Service via unbounded multipart part headers
5.3
CVE-2026-53537
Python-Multipart: Content-Disposition parameter smuggling via RFC 2231/5987 extended parameters
5.3
CVE-2026-40347
Python-Multipart affected by Denial of Service via large multipart preamble or epilogue data
3.7
CVE-2026-53538
Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling