7.5
HIGH CVSS 3.1
CVE-2024-53981
Apache Python-multipart Boundary Skipping Denial of Service (DoS)
Description

python-multipart is a streaming multipart parser for Python. When parsing form data, python-multipart skips line breaks (CR \r or LF \n) in front of the first boundary and any tailing bytes after the last boundary. This happens one byte at a time and emits a log event each time, which may cause excessive logging for certain inputs. An attacker could abuse 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 for a significant amount of time. In case of ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service (DoS). This vulnerability is fixed in 0.0.18.

INFO

Published Date :

Dec. 2, 2024, 4:15 p.m.

Last Modified :

Dec. 2, 2024, 4:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-53981 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
A vulnerability in python-multipart allows for a denial-of-service attack through excessive logging.
  • Update the python-multipart package to version 0.0.18 or later.
  • If the application uses Python 3.11, ensure the correct package is updated.
Public PoC/Exploit Available at Github

CVE-2024-53981 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-53981.

URL Resource
https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177
https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-53981 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Dockerfile Makefile Solidity JavaScript Shell TypeScript

Updated: 2 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : May 28, 2025, 12:02 p.m. This repo has been linked 6 different CVEs too.

None

Updated: 2 months ago
1 stars 0 fork 0 watcher
Born at : April 14, 2025, 12:19 p.m. This repo has been linked 16 different CVEs too.

Contribute to the security of open source software and record the security vulnerabilities encountered

Updated: 3 months, 1 week ago
1 stars 0 fork 0 watcher
Born at : Oct. 17, 2024, 4:05 a.m. This repo has been linked 8 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-53981 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-53981 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Dec. 02, 2024

    Action Type Old Value New Value
    Added Description python-multipart is a streaming multipart parser for Python. When parsing form data, python-multipart skips line breaks (CR \r or LF \n) in front of the first boundary and any tailing bytes after the last boundary. This happens one byte at a time and emits a log event each time, which may cause excessive logging for certain inputs. An attacker could abuse 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 for a significant amount of time. In case of ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service (DoS). This vulnerability is fixed in 0.0.18.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-770
    Added Reference https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177
    Added Reference https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact