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 package | Versions | Reported by |
|---|---|---|
| Kludex python-multipart | < 0.0.27 | CVE List |
| ansible-automation-platform-26/lightspeed-chatbot-rhel9 | Not specified Not affected: from 1783832856 before * | CVE List |
| ansible-automation-platform-26/mcp-tools-rhel9 | Not specified Not affected: from 1783920640 before * | CVE List |
| ansible-automation-platform-27/lightspeed-chatbot-rhel9 | Not specified Not affected: from 1783923914 before * | CVE List |
| ansible-automation-platform-27/mcp-tools-rhel9 | Not specified Not affected: from 1783918403 before * | CVE List |
| mta/mta-solution-server-rhel9 | Not specified Not affected: from 1784109883 before * | CVE List |
| rhoai/odh-mlserver-rhel9 | Not specified Not affected: from 1782887848 before * | CVE List |
| satellite/iop-advisor-engine-rhel9 | Not specified Not affected: from 1784834402 before * | CVE List |
| satellite/iop-vmaas-rhel9 | Not specified Not affected: from 1785929994 before * | CVE List |
| satellite/iop-vulnerability-engine-rhel9 | Not specified Not affected: from 1785806554 before * | CVE List |
| exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 | Not specified | CVE List |
| openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Not specified | CVE List |
| openshift-lightspeed/lightspeed-service-api-rhel9 | Not specified | CVE List |
| rhaiis/vllm-cpu-rhel9 | Not specified | CVE List |
| rhaiis/vllm-cuda-rhel9 | Not specified | CVE List |
| rhaiis/vllm-neuron-rhel9 | Not specified | CVE List |
| rhaiis/vllm-rocm-rhel9 | Not specified | CVE List |
| rhaiis/vllm-spyre-rhel9 | Not specified | CVE List |
| rhaiis/vllm-tpu-rhel9 | Not specified | CVE List |
| ansible-automation-platform-25/lightspeed-chatbot-rhel8 | Not specified | CVE List |
| rhelai3/bootc-aws-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-azure-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-azure-rocm-rhel9 | Not specified | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-gaudi-rhel9 | Not specified | CVE List |
| rhelai3/bootc-gcp-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified | CVE List |
| rhoai/odh-caikit-nlp-rhel9 | Not specified | CVE List |
| rhoai/odh-caikit-tgis-serving-rhel9 | Not specified | CVE List |
| rhoai/odh-feature-server-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-agent-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-controller-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-router-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-storage-initializer-rhel9 | Not specified | CVE List |
| rhoai/odh-llama-stack-core-rhel9 | Not specified | CVE List |
| rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9 | Not specified | CVE List |
| rhoai/odh-vllm-cuda-rhel9 | Not specified | CVE List |
| rhoai/odh-vllm-gaudi-rhel9 | Not specified | CVE List |
| rhoai/odh-vllm-rocm-rhel9 | Not specified | CVE List |
| satellite/foreman-mcp-server-rhel9 | Not specified | CVE List |
| satellite/iop-host-inventory-rhel9 | Not specified | CVE List |
| python-multipart (PyPI) | before 0.0.27 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42561 changed 2026-08-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pp6c-gr5w-3c5g changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-42561 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3039 changed 2026-07-13 | CC-BY-4.0 |