Security Resilience

CVE-2026-40347

DoS in Fastapiexpert Python-Multipart ≤ 0.0.26

Published
18 April 2026
Modified
26 October 2026
Patch / advisory
CVSS Score v3.1 5.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS Score 0.0043 29th percentile
Risk Priority 44 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-40347 is a medium-severity Uncontrolled Resource Consumption (CWE-400) vulnerability in Fastapiexpert Python-Multipart. Its CVSS base score is 5.3 (Medium).

Operationally, ranked at the 29th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SC-5 (Denial-of-service Protection) and SC-6 (Resource Availability) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-53539Same product: Fastapiexpert Python-Multipart
CVE-2026-53540Same product: Fastapiexpert Python-Multipart
CVE-2026-53538Same product: Fastapiexpert Python-Multipart
CVE-2026-53537Same product: Fastapiexpert Python-Multipart
CVE-2026-24486Same product: Fastapiexpert Python-Multipart
CVE-2024-24762Same product: Fastapiexpert Python-Multipart
CVE-2025-6714Shared CWE-400, CWE-834
CVE-2024-0842Shared CWE-400, CWE-834
CVE-2026-109299Shared CWE-400, CWE-834
CVE-2026-50171Shared CWE-400, CWE-834

Affected Assets

fastapiexpert
python-multipart
≤ 0.0.26

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SC-5 directly limits the effects of resource-exhaustion events that constitute uncontrolled consumption.

SC-6 enforces explicit allocation limits on resources, structurally preventing the weakness from occurring.

Engineering principles can require developers to bound all loops and iterations at design time.

Process isolation confines resource consumption to separate domains, reducing blast radius without stopping the root flaw.

Input validation can reject or sanitize data that would otherwise drive unbounded iteration.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Resource-utilization monitoring and alerting on bottlenecks or overloads limits the impact of denial-of-service or resource-exhaustion attacks.

finds

Security testing can detect excessive iteration through stress and fuzz testing.

blocks

A.8.20 implements network-level protections (firewalls, segmentation, protocol hardening, monitoring, authentication of systems/devices) that can limit abuse of a resource-consuming weakness but do not stop the weakness from being exploitable; the flaw remains present in the product and can still be triggered from an authorized or internal context.

prevents

Secure coding standards explicitly forbid unbounded loops and require explicit iteration limits.

blocks

Capacity management ensures sufficient resources are available and monitors utilization, but it does not stop an attacker from sending requests that consume those resources once the system is operational.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-400, a class-level weakness. Rules are authored against its narrower children: CWE-770.
  • No fine-grained STIG row for CWE-834, a class-level weakness, and none of its children carries one either.

References