{"cve":"CVE-2024-53981","nvd":{"published":"2024-12-02T16:15:14.457","modified":"2026-06-17T08:09:36.640","status":"Deferred","description":"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.","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-770"],"references":["https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177","https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:57:36.180738747+00:00"},"epss":{"cve":"CVE-2024-53981","score":0.00635,"percentile":0.50433,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-59g5-xgcq-4qw3","url":"https://osv.dev/vulnerability/GHSA-59g5-xgcq-4qw3","summary":"Denial of service (DoS) via deformation `multipart/form-data` boundary","modified":"2026-09-10T03:50:21.270678783Z","packages":[{"ecosystem":"PyPI","name":"python-multipart","purl":"pkg:pypi/python-multipart","ranges":["<0.0.18"],"fixed":["0.0.18"]}]},{"id":"PYSEC-2026-1851","url":"https://osv.dev/vulnerability/PYSEC-2026-1851","summary":"Denial of service (DoS) via deformation `multipart/form-data` boundary","modified":"2026-07-07T17:48:07.212662534Z","packages":[{"ecosystem":"PyPI","name":"python-multipart","purl":"pkg:pypi/python-multipart","ranges":["<0.0.18"],"fixed":["0.0.18"]}]}],"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."]}