PT-2024-35993 · Pypi+6 · Python-Multipart+6

Mnqazi

+1

·

Published

2024-12-02

·

Updated

2026-02-11

·

CVE-2024-53981

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions: python-multipart versions prior to 0.0.18
Description: The issue arises when parsing form data, as python-multipart skips line breaks in front of the first boundary and any tailing bytes after the last boundary, one byte at a time, emitting a log event each time. This can cause excessive logging for certain inputs. An attacker could exploit this by sending a malicious request with lots of data before the first or after the last boundary, causing high CPU load and stalling the processing thread. In the case of an ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service.
Recommendations: For python-multipart versions prior to 0.0.18, update to version 0.0.18 to resolve the issue. As a temporary workaround, consider restricting the amount of data that can be sent before the first or after the last boundary to minimize the risk of exploitation.

Exploit

Fix

DoS

Resource Exhaustion

Allocation of Resources Without Limits

Weakness Enumeration

Related Identifiers

ALT-PU-2025-9661
BDU:2025-03461
CVE-2024-53981
GHSA-59G5-XGCQ-4QW3
GHSA-5CCF-884P-4JJQ
GHSA-6WJ5-5PGR-JWQ8
OPENSUSE-SU-2024:14551-1
OPENSUSE-SU-2024_4194-1
SUSE-SU-2024:4194-1
USN-8027-1

Affected Products

Alt Linux
Debian
Linuxmint
Red Os
Suse
Ubuntu
Python-Multipart