CVE-2024-53981 python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/python-multipart(Debian 12) | = 0.0.5-3; = 0.0.6-1; = 0.0.9-1; = 0.0.17-1 +12 more | No fix listed | No fix yet |
| debian/python-multipart(Debian 13) | < 0.0.20-1 | 0.0.20-1 | Fixed |
| debian/python-multipart(Debian 14) | < 0.0.20-1 | 0.0.20-1 | Fixed |
| Kludex python-multipart | < 0.0.18; = < 0.0.18 | 0.0.18 | Fixed |
| pypi python-multipart(PyPI) | < 0.0.18; = 0.0.1; = 0.0.2; = 0.0.3 +14 more | 0.0.18 | Fixed |
| ubuntu/python-multipart(Ubuntu 22.04) | < 0.0.5-2ubuntu0.1~esm1 | 0.0.5-2ubuntu0.1~esm1 | Fixed |
| ubuntu/python-multipart(Ubuntu 24.04) | < 0.0.9-1ubuntu0.1~esm1 | 0.0.9-1ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi python-multipart(PyPI) | < 0.0.18 | 0.0.18 |
| pypi python-multipart(PyPI) | = 0.0.1 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.10 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.11 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.12 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.13 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.14 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.15 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.16 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.17 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.2 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.3 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.4 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.5 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.6 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.7 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.8 | No fix listed |
| pypi python-multipart(PyPI) | = 0.0.9 | No fix listed |
| debian/python-multipart(Debian:12) | All versions | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.17-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.17-2 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.17-3 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.17-4 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.17-5 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.20-1 | No fix listed |
Show 15 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/python-multipart(Debian:12) | = 0.0.20-1.1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.20-1.1~deb13u1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.22-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.26-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.32-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.33-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.5-3 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.6-1 | No fix listed |
| debian/python-multipart(Debian:12) | = 0.0.9-1 | No fix listed |
| debian/python-multipart(Debian:13) | < 0.0.20-1 | 0.0.20-1 |
| debian/python-multipart(Debian:14) | < 0.0.20-1 | 0.0.20-1 |
| ubuntu/python-multipart(Ubuntu:22.04) | < 0.0.5-2ubuntu0.1~esm1 | 0.0.5-2ubuntu0.1~esm1 |
| Kludex python-multipart | = < 0.0.18 | No fix listed |
| Kludex python-multipart | < 0.0.18 | 0.0.18 |
| ubuntu/python-multipart(Ubuntu:24.04) | < 0.0.9-1ubuntu0.1~esm1 | 0.0.9-1ubuntu0.1~esm1 |
References
- https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177 patch
- github.com product
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2024-53981 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8027-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking