# CVE-2026-53540: Python-Multipart: Negative Content-Length in parse\_form buffers the entire body in memory

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-22
- Aliases: GHSA-v9pg-7xvm-68hf, PYSEC-2026-3040, UBUNTU-CVE-2026-53540, DEBIAN-CVE-2026-53540, CGA-6qw2-g8wv-hf2p, CGA-phr5-wc2v-hgrf, CGA-3382-rhvh-9f79, CGA-45c4-m7hj-cff8, CGA-4rm4-578x-gcjv, CGA-5xqq-pgjh-f7wf, CGA-6h28-fxf7-r394, CGA-7hqh-c5m9-rjqg, CGA-7j8q-c5cf-jx67, CGA-7rcc-4c57-73c9, CGA-84gq-x7q6-75w4, CGA-grwp-xh58-w2cj, CGA-pgcr-w66r-q392, CGA-pv94-g4hj-8r8x, CGA-q58q-7h6w-c2mp, CGA-qc86-xv3f-2ff4, CGA-vjvg-8p7v-6q95, CGA-wqrf-m69v-8vhr
- Record: https://cvemate.com/vulnerability/CVE-2026-53540 · JSON: https://cvemate.com/vulnerability/CVE-2026-53540/json

## Description

```text
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.
```

## Signals

- CVSS: 3.7 low (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.23%, percentile 14.765%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-3 (Chainguard): \< 3.2.2-r7
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-3 (Chainguard): \< 3.2.2-r3 \| \< 3.2.2-r7
- chainguard airflow-postgres-fips-3 (Chainguard): \< 3.2.2-r5
- chainguard litellm (Chainguard): \< 1.89.0-r2
- chainguard tritonserver-backend-vllm-cuda-12.9 (Chainguard): \< 25.9.0\_git20260617-r0
- chainguard wazuh-manager-framework (Chainguard): \< 4.14.5-r4
- chainguard wazuh-manager-framework-fips (Chainguard): \< 4.14.5-r6
- wolfi airflow-3 (Wolfi): \< 3.2.2-r7
- debian python-multipart (Debian): All versions (No fix recorded) \| \< 0.0.32-1
- ubuntu python-multipart (Ubuntu): All versions (No fix recorded)
- fastapiexpert python-multipart: \< 0.0.31
- kludex python-multipart: \< 0.0.31
- PyPI python-multipart (PyPI): \< 0.0.31

## References

- <https://github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hf>
- <https://github.com/Kludex/python-multipart>
- <https://pypi.org/project/python-multipart>
- <https://github.com/advisories/GHSA-v9pg-7xvm-68hf>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53540>
- <https://ubuntu.com/security/CVE-2026-53540>
- <https://www.cve.org/CVERecord?id=CVE-2026-53540>
- <https://security-tracker.debian.org/tracker/CVE-2026-53540>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53540.json>

---

Data as of 2026-12-05T04:55:22.095Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
