# CVE-2024-53981: python-multipart: python-multipart is a streaming multipart parser for Python

CVE-2024-53981 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2024-53981, released December 2, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-53981
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0064
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 2, 2024

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-multipart Debian 13.5 (trixie) | 0.0.20-1 | [DEBIAN-CVE-2024-53981](https://patchblox.com/security/data/fix/linux/debian-cve-2024-53981.md) | Dec 2, 2024 |
| Linux | python-multipart Debian 14 | 0.0.20-1 | [DEBIAN-CVE-2024-53981](https://patchblox.com/security/data/fix/linux/debian-cve-2024-53981.md) | Dec 2, 2024 |
| Linux | python-python-multipart opensuse-leap 15.6 | 0.0.9-150600.3.3.1 | [SUSE-SU-2024:4194-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4194-1.md) | Dec 5, 2024 |
| Linux | python3-multipart Ubuntu 22.04.1 LTS (jammy) | 0.0.5-2ubuntu0.1~esm1 | [python3-multipart 0.0.5-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-multipart-0.0.5-2ubuntu0.1-esm1.md) | Jan 26, 2026 |
| Linux | python3-multipart Ubuntu 24.04.5 LTS (noble) | 0.0.9-1ubuntu0.1~esm1 | [python3-multipart 0.0.9-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-multipart-0.0.9-1ubuntu0.1-esm1.md) | Jan 26, 2026 |

---

Data as of 2026-11-10T01:44:33Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
