CVE-2024-24762Fastapiexpert Python-multipart
High 7.5 No auth needed
Follow: this CVE · Fastapiexpert · Fastapiexpert Python-multipart We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Feb 5, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
`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.
What to do
- Apply the vendor's security update for Python-multipart.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | fastapi |
< 0.109.1 |
0.109.1 |
pip install "fastapi>=0.109.1" |
| PyPI | python-multipart |
< 0.0.7 |
0.0.7 |
pip install "python-multipart>=0.0.7" |
| PyPI | python-multipart |
< 0.0.7 |
0.0.7 |
pip install "python-multipart>=0.0.7" |
Per OSV / GitHub Advisories (PYSEC-2024-38, GHSA-2jv5-9r88-3w3p, PYSEC-2026-1850). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| fastapiexpert | python-multipart | < 0.0.7 |
Official advisories
- python313-python-multipart-0.0.32-1.3 on GA media · SUSE · openSUSE-SU-2026:12032-1 · Oct 4, 2026 High
- python313-fastapi-0.138.0-2.1 on GA media · SUSE · openSUSE-SU-2026:11710-1 · Sep 7, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory
- github.com Product
- github.com Patch
- github.com Broken Link
- github.com Patch
- github.com Product
- github.com Broken Link