Skip to main content
← All vulnerabilities
CVE-2026-53540PYSEC-2026-3040GHSA-V9PG-7XVM-68HF

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.0.31
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Kludex python-multipart

    fixed in 0.0.31

  • python-multipartPyPI

    fixed in 0.0.31

References 1

GitHub · Kludex/python-multipart