# CVE-2024-24762: python-multipart vulnerable to content-type header Regular expression 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): 1.52%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-05T14:33:06.481Z
- Modified: 2026-09-10T03:50:05.199Z
- Also known as: GHSA-2jv5-9r88-3w3p, GHSA-qf9m-vfgh-m389, PYSEC-2024-38, PYSEC-2026-1850
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

`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.

(As written by CVE List.)

## Affected

- python-multipart: before 0.0.7
- fastapi: before 0.109.1
- startlette: before 0.36.2
- python-multipart (PyPI): before 0.0.7
- fastapi (PyPI): before 0.109.1; before 9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc
- fastapiexpert python-multipart: before 0.0.7

## 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`
- NVD: 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-2jv5-9r88-3w3p> (exploit, vendor-advisory, web)
- <https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4> (fix, patch, web)
- <https://github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389> (advisory, broken-link, web)
- <https://github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238> (broken-link, web)
- <https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74> (product, web)
- <https://github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5> (patch, web)
- <https://github.com/tiangolo/fastapi/commit/9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc> (fix, patch, web)
- <https://github.com/tiangolo/fastapi/releases/tag/0.109.1> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24762> (advisory)
- <https://github.com/github/advisory-database/pull/4829> (web)
- <https://github.com/Kludex/python-multipart> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/fastapi/PYSEC-2024-38.yaml> (web)
- <https://github.com/tiangolo/fastapi> (package)
- <https://pypi.org/project/python-multipart> (package)
- <https://github.com/advisories/GHSA-2jv5-9r88-3w3p> (advisory)

## Sources

- CVE List: [CVE-2024-24762](https://www.cve.org/CVERecord?id=CVE-2024-24762), CVE Terms of Use, modified 2025-05-09
- GitHub Advisory Database: [GHSA-2jv5-9r88-3w3p](https://github.com/advisories/GHSA-2jv5-9r88-3w3p), CC-BY-4.0, modified 2026-09-10
- GitHub Advisory Database: [GHSA-qf9m-vfgh-m389](https://github.com/advisories/GHSA-qf9m-vfgh-m389), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-24762](https://nvd.nist.gov/vuln/detail/CVE-2024-24762), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-38](https://osv.dev/vulnerability/PYSEC-2024-38), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-1850](https://osv.dev/vulnerability/PYSEC-2026-1850), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-24762 · Whole record: https://cve.day/CVE-2024-24762.json · Rebuilt by cve.day 2026-11-25T22:58:36.556Z
