{"id":"CVE-2024-53981","published":"2024-12-02T15:57:50Z","modified":"2024-12-02T19:59:14Z","title":"python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary","vendor":"Kludex","product":"python-multipart","tier":"tail","description":{"text":"python-multipart is a streaming multipart parser for Python. When parsing form data, python-multipart skips line breaks (CR \\r or LF \\n) in front of the first boundary and any tailing bytes after the last boundary. This happens one byte at a time and emits a log event each time, which may cause excessive logging for certain inputs. An attacker could abuse this by sending a malicious request with lots of data before the first or after the last boundary, causing high CPU load and stalling the processing thread for a significant amount of time. In case of ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service (DoS). This vulnerability is fixed in 0.0.18.","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.01012,"percentile":0.62218,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177","tags":["x_refsource_MISC"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":12.44},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"kludex","affectedVersions":[{"vendor":"Kludex","product":"python-multipart","versions":["< 0.0.18"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-12-02T19:57:03.991027Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"python-multipart","vulnerableRanges":["<0.0.18"],"patched":["0.0.18"],"from":["GHSA-59g5-xgcq-4qw3","PYSEC-2026-1851"],"provenance":"source"}],"summary":{"text":"The python-multipart streaming multipart parser, used for form data in Python applications, mishandles line breaks before the first boundary and bytes after the last boundary, processing them one byte at a time with a log event for each. A remote, unauthenticated attacker who can send HTTP requests can exploit this by sending a request padded with large amounts of data before the first or after the last boundary, driving up CPU usage and stalling the processing thread, which in an ASGI application can block the event loop and deny service to other requests.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:41Z"},"euvd":{"id":"EUVD-2024-3431","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kludex-python-multipart-cve-2024-53981","children":[{"from":"CVE-2024-53981","to":"CVE-2026-24486","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:python-multipart","fromFixed":"0.0.18","toFixed":"0.0.22","daysApart":421},{"kind":"same-code","provenance":"machine","files":["python_multipart/multipart.py"],"commits":["https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177","https://github.com/Kludex/python-multipart/commit/9433f4bbc9652bdde82bbe380984e32f8cfc89c4"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-24762","published":"2024-02-05","fixed":"0.0.7","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-2024-53981","published":"2024-12-02","fixed":"0.0.18","kev":false},{"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},{"cve":"CVE-2026-42561","published":"2026-05-13","fixed":"0.0.27","kev":false}],"package":"PyPI:python-multipart"}}