CVE-2026-53540

published 22 Jun 2026 · updated 22 Jun 2026

Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory

3.7LowCVSS 3.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Kludexpython-multipart<0.0.31

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kludex, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-53540 severity on Zeptric[![CVE-2026-53540](https://zeptric.io/badge/cve/CVE-2026-53540.svg)](https://zeptric.io/cve/CVE-2026-53540)