Skip to content

Bump python-multipart to fix CVE-2024-24762 ReDoS vulnerability#183

Open
maycuatroi1 wants to merge 1 commit intoVoltaML:mainfrom
maycuatroi1:fix/python-multipart-cve-2024-24762
Open

Bump python-multipart to fix CVE-2024-24762 ReDoS vulnerability#183
maycuatroi1 wants to merge 1 commit intoVoltaML:mainfrom
maycuatroi1:fix/python-multipart-cve-2024-24762

Conversation

@maycuatroi1
Copy link

python-multipart 0.0.6 and below are vulnerable to CVE-2024-24762 (CVSS 7.5), a ReDoS (Regular Expression Denial of Service) attack.

The vulnerability is in parse_options_header() which uses the regex (?:\\.|[^"])* that catastrophically backtracks on crafted input like Content-Type: multipart/form-data; boundary="\\\\...a. Each additional backslash approximately doubles the processing time, causing the server to hang.

This project uses python-multipart==0.0.6 in requirements/api.txt together with FastAPI's UploadFile, making it exploitable by any unauthenticated attacker who can send a file upload request.

This PR bumps the dependency to >=0.0.7 where the vulnerability is fixed.

Reference: GHSA-2jv5-9r88-3w3p

@maycuatroi1 maycuatroi1 requested a review from Stax124 as a code owner February 27, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant