CVE-2026-42561

Python-Multipart: Denial of Service via unbounded multipart part headers

Published May 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Python‑Multipart is a streaming multipart parser for Python that, before version 0.0.27, was vulnerable to a denial‑of‑service attack. The parser does not impose limits on the number of part headers or the size of an individual header when parsing multipart/form‑data, allowing an attacker to send a request with either many repeated headers or a single very large header value. This forces the parser to perform excessive CPU work before it can reject or complete the request, potentially exhausting server resources and disrupting availability. This flaw represents an Input Validation weakness (CWE‑606) and a Resource Exhaustion vulnerability (CWE‑770).

Affected Systems

The vulnerability affects installations of Kludex python‑multipart in any version earlier than 0.0.27. Clients or services that use this library to process multipart/form‑data should review the version they are running.

Risk and Exploitability

The CVSS score of 7.5 indicates a high impact with limited exploit requirements. Because the attack vector likely involves HTTP multipart requests, any exposed endpoint that accepts multipart/form‑data is a potential target. The EPSS score of 0.0074 and lack of listing in the CISA KEV catalog suggest the vulnerability is not yet widely exploited. Nevertheless, an attacker could craft a malicious request to trigger the denial‑of‑service condition if the target has not applied the fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to python‑multipart 0.0.27 or later, which implements limits on header count and size.
  • If an upgrade is not immediately possible, implement a web‑application firewall or reverse‑proxy rule to reject incoming requests with excessively large headers or a suspicious number of headers before they reach the application.
  • Implement input validation to enforce header length and count limits, mitigating CWE‑606.
  • Monitor server performance and log entries for anomalous multipart requests to detect attempts to exploit the vulnerability.

Generated by OpenCVE AI on August 14, 2026 at 02:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pp6c-gr5w-3c5g python-multipart has Denial of Service via unbounded multipart part headers
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Kludex
Kludex python-multipart
Vendors & Products Kludex
Kludex python-multipart
Type Values Removed Values Added
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.
Title Python-Multipart: Denial of Service via unbounded multipart part headers
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 7, 2026, 12:04 PM
Reserved
Apr 28, 2026, 4:56 PM
Status
Deferred
Published
May 13, 2026, 9:16 PM
Modified
Oct 26, 2026, 2:10 PM