# CVE-2026-40347: Python-Multipart affected by Denial of Service via large multipart preamble or epilogue data

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-17 · Modified: 2026-04-20
- Aliases: GHSA-mj87-hwqh-73pj, PYSEC-2026-3038, UBUNTU-CVE-2026-40347, DEBIAN-CVE-2026-40347, CGA-3p73-fcvx-rgv7, CGA-4h58-mx63-h35r, CGA-4mj8-mj29-pf3w, CGA-6xp8-f9x8-22v9, CGA-g8gj-5mqh-9p9h, CGA-mh7w-8f32-prcg, openSUSE-SU-2026:10597-1, CGA-29qq-9rj7-cjp4, CGA-59w4-fwm6-grxm, CGA-7g9p-m579-f255, CGA-93m7-h6jr-gc6q, CGA-97mc-258x-7cxp, CGA-c5gh-f65f-xh7q, CGA-ghr8-g9rg-wgp6, CGA-gqq9-9p3j-h28g, CGA-h5qq-hp5q-xwhg, CGA-hv73-xxh9-7w39, CGA-hwcq-8v4p-6x6g, CGA-m78p-w6gr-65f2, CGA-m9r4-9vxx-c3q2, CGA-mgrr-mm22-qxgx, CGA-mh5h-wrwf-hj2w, CGA-rrj7-wrxm-h9hq, CGA-rvj8-r4rc-27fm, CGA-w3vj-4mc2-f5f8, CGA-wmg5-3gcw-r63v, CGA-x6hc-j5j4-vfjc, CGA-xcpm-8p5p-wq6q
- Record: https://cvemate.com/vulnerability/CVE-2026-40347 · JSON: https://cvemate.com/vulnerability/CVE-2026-40347/json

## Description

```text
Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted `multipart/form-data` requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.372%, percentile 33.228%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 24)

- chainguard airflow-2 (Chainguard): \< 2.11.2-r9
- chainguard airflow-3 (Chainguard): \< 3.2.1-r0
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-3 (Chainguard): \< 3.2.1-r0
- chainguard keep-api (Chainguard): \< 0.51.0-r4 \| \< 0.51.0-r3
- chainguard keep-api-fips (Chainguard): \< 0.51.0-r3
- chainguard kserve-storage-controller (Chainguard): \< 0.17.0-r2
- chainguard litellm (Chainguard): \< 1.82.3.0-r4
- chainguard semgrep (Chainguard): \< 1.160.0-r1
- chainguard synapse (Chainguard): \< 1.151.0-r3
- chainguard tritonserver-backend-vllm-cuda-12.9 (Chainguard): \< 25.9.0\_git20260318-r1
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r4
- chainguard vllm-openai-cuda-12.9 (Chainguard): \< 0.19.1-r0
- chainguard wazuh-manager-framework (Chainguard): \< 4.14.4-r5
- chainguard wazuh-manager-framework-fips (Chainguard): \< 4.14.5-r0
- wolfi airflow-3 (Wolfi): \< 3.2.1-r0
- wolfi kserve-storage-controller (Wolfi): \< 0.17.0-r2
- wolfi semgrep (Wolfi): \< 1.160.0-r1
- debian python-multipart (Debian): All versions (No fix recorded) \| \< 0.0.26-1
- ubuntu python-multipart (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/Kludex/python-multipart/security/advisories/GHSA-mj87-hwqh-73pj>
- <https://github.com/Kludex/python-multipart/releases/tag/0.0.26>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40347>
- <https://github.com/Kludex/python-multipart>
- <https://pypi.org/project/python-multipart>
- <https://github.com/advisories/GHSA-mj87-hwqh-73pj>
- <https://ubuntu.com/security/CVE-2026-40347>
- <https://www.cve.org/CVERecord?id=CVE-2026-40347>
- <https://github.com/Kludex/python-multipart/pull/259>
- <https://security-tracker.debian.org/tracker/CVE-2026-40347>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40347.json>
- <https://www.suse.com/security/cve/CVE-2026-40347>

---

Data as of 2026-12-05T05:06:00.970Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
