{"id":"CVE-2026-42561","aliases":["CVE-2026-42561","GHSA-pp6c-gr5w-3c5g","PYSEC-2026-3039"],"related":[],"kind":"vulnerability","state":"published","title":"Python-Multipart: Denial of Service via unbounded multipart part headers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n`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.\n\n### Impact\n\nApplications 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.\n\n### Details\n\nThe 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:\n\n- A multipart part with an oversized individual header value.\n- A multipart part with many repeated header lines or an unterminated header block.\n\nBoth variants are addressed by enforcing default parser limits for maximum header count and maximum header size.\n\n### Mitigation\n\nUpgrade to `python-multipart` `0.0.27` or later.\n\nIf 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-06T21:56:14.000Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-606","CWE-770"],"affected":[{"ranges":[{"version":"< 0.0.27","status":"affected"}],"vendor":"Kludex","product":"python-multipart","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783832856","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","package":"ansible-automation-platform-26/lightspeed-chatbot-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783920640","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","package":"ansible-automation-platform-26/mcp-tools-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783923914","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.7","package":"ansible-automation-platform-27/lightspeed-chatbot-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.7::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1783918403","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.7","package":"ansible-automation-platform-27/mcp-tools-rhel9","cpe":"cpe:/a:redhat:ansible_automation_platform:2.7::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784109883","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Migration Toolkit for Applications 8.2","package":"mta/mta-solution-server-rhel9","cpe":"cpe:/a:redhat:migration_toolkit_applications:8.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782887848","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","package":"rhoai/odh-mlserver-rhel9","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1784834402","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.17","package":"satellite/iop-advisor-engine-rhel9","cpe":"cpe:/a:redhat:satellite:6.17::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785929994","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19","package":"satellite/iop-vmaas-rhel9","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1785806554","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Satellite 6.19","package":"satellite/iop-vulnerability-engine-rhel9","cpe":"cpe:/a:redhat:satellite:6.19::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Exploit Intelligence","package":"exploit-intelligence-tech-preview/vulnerability-analysis-rhel9","cpe":"cpe:/a:redhat:exploit_intelligence:0","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Lightspeed","package":"openshift-lightspeed/lightspeed-ocp-rag-rhel9","cpe":"cpe:/a:redhat:openshift_lightspeed","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Lightspeed","package":"openshift-lightspeed/lightspeed-service-api-rhel9","cpe":"cpe:/a:redhat:openshift_lightspeed","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-cpu-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-cuda-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-neuron-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-rocm-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-spyre-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat AI Inference Server","package":"rhaiis/vllm-tpu-rhel9","cpe":"cpe:/a:redhat:ai_inference_server:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","package":"ansible-automation-platform-25/lightspeed-chatbot-rhel8","cpe":"cpe:/a:redhat:ansible_automation_platform:2","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-aws-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-azure-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-gaudi-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-gcp-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/bootc-rocm-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","package":"rhelai3/disk-image-cuda-rhel9","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-caikit-nlp-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-caikit-tgis-serving-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-feature-server-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-agent-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-controller-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-router-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-kserve-storage-initializer-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-llama-stack-core-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-vllm-cuda-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-vllm-gaudi-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","package":"rhoai/odh-vllm-rocm-rhel9","cpe":"cpe:/a:redhat:openshift_ai","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"satellite/foreman-mcp-server-rhel9","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Satellite 6","package":"satellite/iop-host-inventory-rhel9","cpe":"cpe:/a:redhat:satellite:6","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.27"}],"ecosystem":"PyPI","package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.27"}],"ecosystem":"PyPI","package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"pysec"}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-pp6c-gr5w-3c5g","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42561","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2477309","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42561.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42132","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:42142","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:43038","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:37275","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:44696","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51357","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51194","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:51219","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42561","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Kludex/python-multipart","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/python-multipart","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-pp6c-gr5w-3c5g","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-14T16:04:33.782Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42561","url":"https://www.cve.org/CVERecord?id=CVE-2026-42561","licence":"CVE Terms of Use","modified":"2026-08-07T12:04:48.215Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pp6c-gr5w-3c5g","url":"https://github.com/advisories/GHSA-pp6c-gr5w-3c5g","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:47.215Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42561","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42561","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3039","url":"https://osv.dev/vulnerability/PYSEC-2026-3039","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:29.070Z"}],"updatedAt":"2026-11-25T22:59:21.661Z","epss":{"score":0.0074,"percentile":0.55833,"date":"2026-12-01T12:00:22.000Z"}}