# CVE-2026-53539: Python-Multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-06-15T20:24:09.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-5rvq-cxj2-64vf, PYSEC-2026-3036
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Kludex python-multipart: < 0.0.30
- python-multipart (PyPI): before 0.0.30
- fastapiexpert python-multipart: before 0.0.30

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/Kludex/python-multipart/security/advisories/GHSA-5rvq-cxj2-64vf> (vendor-advisory, web)
- <https://github.com/Kludex/python-multipart> (package)
- <https://pypi.org/project/python-multipart> (package)
- <https://github.com/advisories/GHSA-5rvq-cxj2-64vf> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53539> (advisory)

## Sources

- CVE List: [CVE-2026-53539](https://www.cve.org/CVERecord?id=CVE-2026-53539), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-5rvq-cxj2-64vf](https://github.com/advisories/GHSA-5rvq-cxj2-64vf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-53539](https://nvd.nist.gov/vuln/detail/CVE-2026-53539), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-3036](https://osv.dev/vulnerability/PYSEC-2026-3036), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-53539 · Whole record: https://cve.day/CVE-2026-53539.json · Rebuilt by cve.day 2026-11-25T22:59:25.390Z
