# CVE-2024-53981: python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary

- 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): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-12-02T15:57:50.232Z
- Modified: 2026-09-10T03:50:21.270Z
- Also known as: GHSA-59g5-xgcq-4qw3, PYSEC-2026-1851
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Kludex python-multipart: < 0.0.18; before 0.0.18
- python-multipart (PyPI): before 0.0.18

## 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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- 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`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3> (web)
- <https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53981> (advisory)
- <https://github.com/Kludex/python-multipart> (package)
- <https://pypi.org/project/python-multipart> (package)
- <https://github.com/advisories/GHSA-59g5-xgcq-4qw3> (advisory)

## Sources

- CVE List: [CVE-2024-53981](https://www.cve.org/CVERecord?id=CVE-2024-53981), CVE Terms of Use, modified 2024-12-02
- GitHub Advisory Database: [GHSA-59g5-xgcq-4qw3](https://github.com/advisories/GHSA-59g5-xgcq-4qw3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-53981](https://nvd.nist.gov/vuln/detail/CVE-2024-53981), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1851](https://osv.dev/vulnerability/PYSEC-2026-1851), CC-BY-4.0, modified 2026-07-07

---

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