Advisory record · GHSA-v9pg-7xvm-68hf

python-multipart: Negative Content-Length in parse_form buffers the entire body in memory

CVSS 3.7 LowEPSS 0.0034 · 27th percentile

Published by the GitHub Advisory Database at 15 Jun 2026, 20:23 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
python-multipartPyPI<0.0.310.0.31
Identifiers
GHSA-v9pg-7xvm-68hf · CVE-2026-53540 · PYSEC-2026-3040
Weakness (CWE)
CWE-1284
Published
15 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Affected: python-multipart versions before 0.0.31. A negative Content-Length value passed to parse_form() causes the whole request body to be read into memory at once instead of in chunks. The attack needs only to send a crafted request, and the impact is limited to applications that call parse_form() directly with raw client headers, where it can degrade availability under concurrent requests. Upgrade to python-multipart 0.0.31 or later, which rejects negative Content-Length values.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
3.7 Low 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0034, the 27th percentile, on 7 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.