PT-2024-20540 · Pypi+6 · Python-Multipart+6
Parentebf9723
·
Published
2024-02-05
·
Updated
2026-04-04
·
CVE-2024-24762
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
python-multipart versions prior to 0.0.7
FastAPI version 0.109.0
Description
The vulnerability is related to a Regular Expression Denial of Service (ReDoS) in the
python-multipart library, which is used by FastAPI to parse form data. An attacker can send a custom-made Content-Type option that is difficult for the RegEx to process, consuming CPU resources and stalling indefinitely. This can cause the process to be unable to handle any more requests, leading to a denial of service. The vulnerability only applies when the app uses form data, parsed with python-multipart.Recommendations
For python-multipart versions prior to 0.0.7, update to version 0.0.7 or later.
For FastAPI version 0.109.0, update to version 0.109.1 or later.
Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Debian
Fastapi
Linuxmint
Red Os
Ubuntu
Python-Multipart