PT-2026-33212 · Pypi · Python-Multipart

Published

2026-04-15

·

Updated

2026-04-21

·

CVE-2026-40347

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions Python-Multipart versions prior to 0.0.26
Description An issue exists when parsing crafted multipart/form-data requests containing large preamble or epilogue sections. Two inefficient parsing paths can be abused: the parser handles leading CR and LF bytes inefficiently while searching for the first boundary, and it continues processing trailing epilogue data after the closing boundary instead of discarding it. This allows an attacker to send oversized malformed multipart bodies that consume excessive CPU time, reducing request-handling capacity and delaying legitimate requests, which degrades availability.
Recommendations Upgrade to version 0.0.26 or later.

Fix

DoS

Resource Exhaustion

Weakness Enumeration

Related Identifiers

CVE-2026-40347
GHSA-MJ87-HWQH-73PJ
OPENSUSE-SU-2026:10597-1

Affected Products

Python-Multipart