Bump python-multipart to fix CVE-2024-24762 ReDoS vulnerability#183
Open
maycuatroi1 wants to merge 1 commit intoVoltaML:mainfrom
Open
Bump python-multipart to fix CVE-2024-24762 ReDoS vulnerability#183maycuatroi1 wants to merge 1 commit intoVoltaML:mainfrom
maycuatroi1 wants to merge 1 commit intoVoltaML:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 likeContent-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.6inrequirements/api.txttogether with FastAPI'sUploadFile, making it exploitable by any unauthenticated attacker who can send a file upload request.This PR bumps the dependency to
>=0.0.7where the vulnerability is fixed.Reference: GHSA-2jv5-9r88-3w3p