python-multipart vulnerable to content-type header Regular expression Denial of Service
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
`python-multipart` is a streaming multipart parser for Python. When using form data, `python-multipart` uses a Regular Expression to parse the HTTP `Content-Type` header, including options. An attacker could send a custom-made `Content-Type` option that is very difficult for the RegEx to process, consuming CPU resources and stalling indefinitely (minutes or more) while holding the main event loop. This means that process can't handle any more requests, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kludex | python-multipart | before 0.0.7 | 0.0.7 | Patch available | CNA |
| tiangolo | fastapi | before 0.109.1 | 0.109.1 | Patch available | CNA |
| encode | starlette | before 0.36.2 | 0.36.2 | Patch available | CNA |
| — | python-multipart (PyPI) | before 0.0.7 | 0.0.7 | Patch available | GHSA-2jv5-9r88-3w3p |
- python-multipart VendorKludex Affected before 0.0.7 Fixed in 0.0.7 Patch available CNA
- fastapi Vendortiangolo Affected before 0.109.1 Fixed in 0.109.1 Patch available CNA
- starlette Vendorencode Affected before 0.36.2 Fixed in 0.36.2 Patch available CNA
- python-multipart (PyPI) Vendor— Affected before 0.0.7 Fixed in 0.0.7 Patch available GHSA-2jv5-9r88-3w3p
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:* | before 0.0.7 | Vulnerable | Fastapiexpert |
| cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:* | before 0.36.2 | Running on | encode |
| cpe:2.3:a:tiangolo:fastapi:*:*:*:*:*:*:*:* | before 0.109.1 | Running on | tiangolo |
- cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:* Versions before 0.0.7 Vulnerable ·Fastapiexpert
- cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:* Versions before 0.36.2 Running on ·encode
- cpe:2.3:a:tiangolo:fastapi:*:*:*:*:*:*:*:* Versions before 0.109.1 Running on ·tiangolo
Remediation
- Fix · CNA python-multipart (Kludex) Fixed in 0.0.7
- Fix · CNA fastapi (tiangolo) Fixed in 0.109.1
- Fix · CNA starlette (encode) Fixed in 0.36.2
- Fix · GHSA-2jv5-9r88-3w3p python-multipart (PyPI) Fixed in 0.0.7 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-24762
- 2026-10-03 Alias added: GHSA-2jv5-9r88-3w3p
References
Patch 3
Other 7
- https://github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389
- https://github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238
- https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74
- https://github.com/tiangolo/fastapi/releases/tag/0.109.1
- https://github.com/github/advisory-database/pull/4829
- https://github.com/Kludex/python-multipart
- https://github.com/pypa/advisory-database/tree/main/vulns/fastapi/PYSEC-2024-38.yaml
More Kludex vulnerabilities
- TI-2025-38917 Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse CVSS 3.1HIGH 7.5
- TI-2026-30841 Python-Multipart: Denial of Service via unbounded multipart part headers CVSS 3.1HIGH 7.5
- TI-2024-36140 python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary CVSS 3.1HIGH 7.5
Sources
- CVE-2024-24762 · CVE Program
- CVE-2024-24762 · NVD
- FIRST EPSS
- GHSA-2jv5-9r88-3w3p · GitHub Advisory Database · CC BY 4.0
- CVE-2024-24762 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences