{"id":"CVE-2026-53540","state":"PUBLISHED","title":"Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory","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.","publishedAt":"2026-06-22T16:58:54.923Z","updatedAt":"2026-06-22T17:21:55.932Z","severity":{"score":3.7,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["Kludex python-multipart"],"affected":[{"vendor":"Kludex","product":"python-multipart","versions":[{"version":"< 0.0.31","status":"affected"}]}],"references":["https://github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hf"],"weaknesses":["CWE-1284"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53540.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53540","state":"PUBLISHED","datePublished":"2026-06-22T16:58:54.923Z","dateUpdated":"2026-06-22T17:21:55.932Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-09T18:13:07.263Z"},"containers":{"cna":{"title":"Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Kludex","product":"python-multipart","versions":[{"version":"< 0.0.31","status":"affected"}]}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hf","name":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-v9pg-7xvm-68hf","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1284","lang":"en","description":"CWE-1284: Improper Validation of Specified Quantity in Input","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-22T16:58:54.923Z"},"source":{"advisory":"GHSA-v9pg-7xvm-68hf","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-22T17:21:49.069742Z","id":"CVE-2026-53540","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-22T17:21:55.932Z"}}]}}}