{"cve":"CVE-2024-24762","nvd":{"published":"2024-02-05T15:15:09.260","modified":"2026-06-17T07:14:48.490","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333","CWE-400"],"references":["https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4","https://github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3p","https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74","https://github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5","https://github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238"],"products":["fastapiexpert:python-multipart"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-24762","score":0.01523,"percentile":0.74637,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2jv5-9r88-3w3p","url":"https://osv.dev/vulnerability/GHSA-2jv5-9r88-3w3p","summary":"python-multipart vulnerable to Content-Type Header ReDoS","modified":"2026-09-10T03:50:05.199982721Z","packages":[{"ecosystem":"PyPI","name":"python-multipart","purl":"pkg:pypi/python-multipart","ranges":["<0.0.7"],"fixed":["0.0.7"]}]},{"id":"PYSEC-2024-38","url":"https://osv.dev/vulnerability/PYSEC-2024-38","summary":"","modified":"2026-07-07T17:56:49.144644089Z","packages":[{"ecosystem":"PyPI","name":"fastapi","purl":"pkg:pypi/fastapi","ranges":["<0.109.1"],"fixed":["0.109.1"]}]},{"id":"PYSEC-2026-1850","url":"https://osv.dev/vulnerability/PYSEC-2026-1850","summary":"python-multipart vulnerable to Content-Type Header ReDoS","modified":"2026-07-07T17:56:49.144644089Z","packages":[{"ecosystem":"PyPI","name":"python-multipart","purl":"pkg:pypi/python-multipart","ranges":["<0.0.7"],"fixed":["0.0.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}