CVE-2024-53981 json
python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary
published last yr. modified 2mo ago also EUVD-2024-3431 , GHSA-59g5-xgcq-4qw3 , PYSEC-2026-1851
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi python-multipart 0.0.18
- Kludex python-multipart 0.0.18
- python-multipart Debian 14, Debian 13 0.0.20-1
debian advisories DEBIAN-CVE-2024-53981
- python-multipart Ubuntu Pro 22.04 LTS 0.0.5-2ubuntu0.1~esm1
- python-multipart Ubuntu Pro 24.04 LTS 0.0.9-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-53981
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-python-multipart openSUSE Leap 15.6 0.0.9-150600.3.3.1
suse advisories SUSE-SU-2024:4194-1
- python-python-multipart openSUSE Tumbleweed 0.0.19-1.1
opensuse advisories openSUSE-SU-2024:14551-1
Is CVE-2024-53981 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-53981 updated cvss 7.5
python-multipart: python-multipart has a DoS via deformation `multipart/form-data` boundary
-
Red Hat Enterprise Linux AI (RHEL AI) bootc-nvidia-rhel9affected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | python-multipart | <0.0.18 |
0.0.18 |
Affected products
- Kludex python-multipart
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177
web
-
github.com
/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-53981
advisory
-
github.com
/Kludex/python-multipart
package
-
pypi.org
/project/python-multipart
package
-
github.com
/advisories/GHSA-59g5-xgcq-4qw3
advisory
Sources
- CVE List CVE-2024-53981
- GitHub Advisory GHSA-59g5-xgcq-4qw3
- NVD CVE-2024-53981
- OSV PYSEC-2026-1851
- Maintainer advisory GHSA-59g5-xgcq-4qw3
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of Kludex/python-multipart published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.