CVE-2024-24762

python-multipart vulnerable to content-type header Regular expression Denial of Service

Published Feb 5, 2024 CVSS 3.1 · 7.5 High EPSS 1.5% KEV · Not listed
Description
`python-multipart` is a streaming multipart parser for Python. When using form data, `python-multipart` uses a Regular Expression to parse the HTTP `Content-Type` header, including options. An attacker could send a custom-made `Content-Type` option that is very difficult for the RegEx to process, consuming CPU resources and stalling indefinitely (minutes or more) while holding the main event loop. This means that process can't handle any more requests, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0059 `python-multipart` is a streaming multipart parser for Python. When using form data, `python-multipart` uses a Regular Expression to parse the HTTP `Content-Type` header, including options. An attacker could send a custom-made `Content-Type` option that is very difficult for the RegEx to process, consuming CPU resources and stalling indefinitely (minutes or more) while holding the main event loop. This means that process can't handle any more requests, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.
Github GHSA Github GHSA GHSA-2jv5-9r88-3w3p python-multipart vulnerable to Content-Type Header ReDoS
Ubuntu USN Ubuntu USN USN-8027-1 Python-Multipart vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:encode:starlette:*:*:*:*:*:*:*:*
cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:*:*:*
cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:*
cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:*
Type Values Removed Values Added
First Time appeared Encode
Encode starlette
Fastapiexpert
Fastapiexpert python-multipart
CPEs cpe:2.3:a:encode:starlette:*:*:*:*:*:*:*:*
cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:*:*:*
Vendors & Products Encode
Encode starlette
Fastapiexpert
Fastapiexpert python-multipart
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 9, 2025, 4:32 PM
Reserved
Jan 29, 2024, 8:51 PM
Status
Analyzed
Published
Feb 5, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:14 AM