CVE-2026-53540
LOW 3.7CVSS 3.1python-multipart: Negative Content-Length in parse_form buffers the entire body in memory
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.
- Published
- 22 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1284
- Also known as
- GHSA-v9pg-7xvm-68hfPYSEC-2026-3040
- Sources
- NVDJSONOSV GHSA-v9pg-7xvm-68hfJSONOSV PYSEC-2026-3040JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | PyPA | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastapiexpert | python-multipartcpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:* |
< 0.0.31 | 0.0.31 |
| OSV | PyPI | python-multipart | < 0.0.31 | 0.0.31 |
References
- https://github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hf · Vendor Advisory, WEB
- https://github.com/Kludex/python-multipart · PACKAGE
- https://pypi.org/project/python-multipart · PACKAGE
- https://github.com/advisories/GHSA-v9pg-7xvm-68hf · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-53540 · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Jun 2026)