Vulnerability · Published May 13, 2026 · Assigned by GitHub_M
CVE-2026-42561Python-Multipart: Denial of Service via unbounded multipart part headers
High 7.5
In plain English
A high-severity resource allocation without limits in python-multipart from Kludex. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.27, python-multipart has a denial of service vulnerability in multipart part header parsing. When parsing multipart/form-data, MultipartParser previously had no limit on the number of part headers or the size of an individual part header. An attacker could send a request with either many repeated headers without terminating the header block or a single very large header value, causing excessive CPU work before request rejection or completion. This vulnerability is fixed in 0.0.27.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-multipart | no fix listed | DEBIAN-CVE-2026-42561 |
| Debian:13 | python-multipart | no fix listed | DEBIAN-CVE-2026-42561 |
| Debian:14 | python-multipart | 0.0.32-1 | DEBIAN-CVE-2026-42561 |
| PyPI | python-multipart | 0.0.27 | GHSA-pp6c-gr5w-3c5g |
| PyPI | python-multipart | 0.0.27 | PYSEC-2026-3039 |
| Ubuntu:25.10 | python-multipart | no fix listed | UBUNTU-CVE-2026-42561 |
| Ubuntu:26.04:LTS | python-multipart | no fix listed | UBUNTU-CVE-2026-42561 |
| Ubuntu:26.10 | python-multipart | no fix listed | UBUNTU-CVE-2026-42561 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Kludex | python-multipart | < 0.0.27 |
Weakness: CWE-770, CWE-606 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/Kludex/python-multipart/security/advisories/GHSA-pp6c-gr5w-3c5g x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2026-42561 vdb-entry, x_refsource_REDHAT
- RHBZ#2477309 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42561.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:42132 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:42142 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:43038 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:37275 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:44696 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:51357 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:51194 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:51219 vendor-advisory, x_refsource_REDHAT