{"id":"CVE-2024-24762","published":"2024-02-05T14:33:06Z","modified":"2025-05-09T16:32:50Z","title":"python-multipart vulnerable to content-type header Regular expression Denial of Service","vendor":"Kludex","product":"python-multipart","tier":"tail","description":{"text":"`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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01523,"percentile":0.75251,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4","tags":["x_refsource_MISC"]},{"url":"https://github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/starlette/security/advisories/GHSA-93gm-qmq6-w238","tags":["x_refsource_MISC"]},{"url":"https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5","tags":["x_refsource_MISC"]},{"url":"https://github.com/tiangolo/fastapi/commit/9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc","tags":["x_refsource_MISC"]},{"url":"https://github.com/tiangolo/fastapi/releases/tag/0.109.1","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":15.05},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"kludex","affectedVersions":[{"vendor":"Kludex","product":"python-multipart","versions":["< 0.0.7"]},{"vendor":"tiangolo","product":"fastapi","versions":["< 0.109.1"]},{"vendor":"encode","product":"starlette","versions":["< 0.36.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-02-05T16:44:44.760876Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"python-multipart","vulnerableRanges":["<0.0.7"],"patched":["0.0.7"],"from":["GHSA-2jv5-9r88-3w3p","PYSEC-2026-1850"],"provenance":"source"},{"ecosystem":"PyPI","package":"fastapi","vulnerableRanges":["<0.109.1"],"patched":["0.109.1"],"from":["PYSEC-2024-38"],"provenance":"source"}],"summary":{"text":"python-multipart, a streaming multipart parser for Python, has a flaw where its regular expression used to parse the HTTP Content-Type header, including its options, can be made to stall. An attacker who can send HTTP requests to an application using form data can supply a specially crafted Content-Type option that takes the regex a very long time to process, tying up CPU and blocking the main event loop with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:53Z"},"euvd":{"id":"EUVD-2024-0059","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-24762","published":"2024-02-05","fixed":"0.0.7","kev":false},{"cve":"CVE-2024-53981","published":"2024-12-02","fixed":"0.0.18","kev":false,"link":{"from":"CVE-2024-24762","to":"CVE-2024-53981","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:python-multipart","fromFixed":"0.0.7","toFixed":"0.0.18","daysApart":301}]}},{"cve":"CVE-2026-24486","published":"2026-01-27","fixed":"0.0.22","kev":false},{"cve":"CVE-2026-40347","published":"2026-04-17","fixed":"0.0.26","kev":false}],"package":"PyPI:python-multipart"}}