CVE-2026-53540: Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory
Vulnerability summary
CVE-2026-53540 is a low (CVSS 3.7) vulnerability in fastapiexpert python-multipart. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14.7% of scored vulnerabilities.
Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 22-06-2026PublishedVulnerability first disclosed.
- 22-06-2026Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · WolfiEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST3.7LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
Decrease -0.11 pp
From 0.34% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard9 products
- airflow-2All versions (No fix recorded)
- airflow-3< 3.2.2-r7
- airflow-core-2All versions (No fix recorded)
- airflow-core-3< 3.2.2-r3 | < 3.2.2-r7
- airflow-postgres-fips-3< 3.2.2-r5
Debian1 product
- python-multipartAll versions (No fix recorded) | < 0.0.32-1
Fastapiexpert1 product
- python-multipart< 0.0.31
Kludex1 product
- python-multipart< 0.0.31
PyPI1 product
- python-multipart< 0.0.31
Ubuntu1 product
- python-multipartAll versions (No fix recorded)
Wolfi1 product
- airflow-3< 3.2.2-r7
7 vendors · 15 products
References
9 links- github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hfX Refsource CONFIRMWEBAdvisoryVendor Advisory