CVE-2026-42561
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pp6c-gr5w-3c5gPYSEC-2026-3039

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

Product or packageVersionsReported by
Kludex python-multipart< 0.0.27CVE List
ansible-automation-platform-26/lightspeed-chatbot-rhel9Not specified
Not affected: from 1783832856 before *
CVE List
ansible-automation-platform-26/mcp-tools-rhel9Not specified
Not affected: from 1783920640 before *
CVE List
ansible-automation-platform-27/lightspeed-chatbot-rhel9Not specified
Not affected: from 1783923914 before *
CVE List
ansible-automation-platform-27/mcp-tools-rhel9Not specified
Not affected: from 1783918403 before *
CVE List
mta/mta-solution-server-rhel9Not specified
Not affected: from 1784109883 before *
CVE List
rhoai/odh-mlserver-rhel9Not specified
Not affected: from 1782887848 before *
CVE List
satellite/iop-advisor-engine-rhel9Not specified
Not affected: from 1784834402 before *
CVE List
satellite/iop-vmaas-rhel9Not specified
Not affected: from 1785929994 before *
CVE List
satellite/iop-vulnerability-engine-rhel9Not specified
Not affected: from 1785806554 before *
CVE List
exploit-intelligence-tech-preview/vulnerability-analysis-rhel9Not specifiedCVE List
openshift-lightspeed/lightspeed-ocp-rag-rhel9Not specifiedCVE List

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
PyPA Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-606CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

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.

Impact

Applications that parse attacker-controlled multipart/form-data with affected versions of python-multipart can experience CPU exhaustion. ASGI applications using Starlette, FastAPI, or other frameworks that invoke python-multipart may have worker or event-loop delays while processing malicious upload requests.

Details

The affected parser states are HEADER_FIELD_START, HEADER_FIELD, HEADER_VALUE_START, HEADER_VALUE, and HEADER_VALUE_ALMOST_DONE. The issue can be triggered by:

  • A multipart part with an oversized individual header value.
  • A multipart part with many repeated header lines or an unterminated header block.

Both variants are addressed by enforcing default parser limits for maximum header count and maximum header size.

Mitigation

Upgrade to python-multipart 0.0.27 or later.

If upgrading is not immediately possible, reduce exposure by enforcing request body size limits at the server, proxy, or framework layer. This is only a mitigation; affected versions of python-multipart still parse multipart part headers without the default header count and header size limits.

NVD (es)

Python-Multipart es un analizador multipart en streaming para Python. Antes de 0.0.27, python-multipart tiene una vulnerabilidad de denegación de servicio en el análisis de encabezados de partes multipart. Al analizar datos multipart/form-data, MultipartParser no tenía previamente un límite en el número de encabezados de parte o el tamaño de un encabezado de parte individual. Un atacante podría enviar una solicitud con muchos encabezados repetidos sin terminar el bloque de encabezados o un único valor de encabezado muy grande, causando un trabajo excesivo de la CPU antes del rechazo o la finalización de la solicitud. Esta vulnerabilidad está corregida en 0.0.27.

References

https://github.com/Kludex/python-multipart/security/advisories/GHSA-pp6c-gr5w-3c5gweb
https://access.redhat.com/security/cve/CVE-2026-42561vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2477309issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42561.json
https://access.redhat.com/errata/RHSA-2026:42132vendor-advisory
https://access.redhat.com/errata/RHSA-2026:42142vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43038vendor-advisory
https://access.redhat.com/errata/RHSA-2026:37275vendor-advisory
https://access.redhat.com/errata/RHSA-2026:44696vendor-advisory
https://access.redhat.com/errata/RHSA-2026:51357vendor-advisory
https://access.redhat.com/errata/RHSA-2026:51194vendor-advisory
https://access.redhat.com/errata/RHSA-2026:51219vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-42561 changed 2026-08-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-pp6c-gr5w-3c5g changed 2026-09-10CC-BY-4.0
NVDCVE-2026-42561 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-3039 changed 2026-07-13CC-BY-4.0