{"id":"CVE-2026-53539","published":"2026-06-22T16:55:42Z","modified":"2026-06-23T16:08:36Z","title":"Python-Multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service","vendor":"Kludex","product":"python-multipart","tier":"tail","description":{"text":"Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, when parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk. An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes. This vulnerability is fixed in 0.0.30.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.40761,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-5rvq-cxj2-64vf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":8.15},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"kludex","affectedVersions":[{"vendor":"Kludex","product":"python-multipart","versions":["< 0.0.30"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-23T14:05:50.901666Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"python-multipart","vulnerableRanges":["<0.0.30"],"patched":["0.0.30"],"from":["GHSA-5rvq-cxj2-64vf","PYSEC-2026-3036"],"provenance":"source"}],"summary":{"text":"The python-multipart library (by Kludex) has a flaw in its QuerystringParser, which handles application/x-www-form-urlencoded request bodies and works through them with a two-step separator lookup that becomes quadratic when semicolons are used instead of ampersands. An attacker who can send a crafted form body over the network, with no authentication or user interaction required, can make the parser consume seconds of CPU per request, so a handful of concurrent requests can exhaust worker processes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:47Z"},"euvd":{"id":"EUVD-2026-38322","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-42561","published":"2026-05-13","fixed":"0.0.27","kev":false,"link":{"from":"CVE-2026-42561","to":"CVE-2026-53539","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:python-multipart","fromFixed":"0.0.27","toFixed":"0.0.30","daysApart":40}]}},{"cve":"CVE-2026-53537","published":"2026-06-22","fixed":"0.0.30","kev":false},{"cve":"CVE-2026-53538","published":"2026-06-22","fixed":"0.0.30","kev":false},{"cve":"CVE-2026-53539","published":"2026-06-22","fixed":"0.0.30","kev":false},{"cve":"CVE-2026-53540","published":"2026-06-22","fixed":"0.0.31","kev":false}],"package":"PyPI:python-multipart"}}