0.0
NA
CVE-2026-53540
Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory
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.

INFO

Published Date :

June 22, 2026, 4:58 p.m.

Last Modified :

June 22, 2026, 4:58 p.m.

Remotely Exploit :

No

Source :

GitHub_M
Affected Products

The following products are affected by CVE-2026-53540 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Update Python-Multipart to version 0.0.31 or later to fix memory exhaustion.
  • Update Python-Multipart to version 0.0.31 or newer.
  • Ensure Content-Length header is validated.
  • Limit memory usage for large uploads.
  • Implement chunked reading for requests.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-53540 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.