`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.
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
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 09 May 2025 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 18 Nov 2024 21:00:00 +0000

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:*:*

Thu, 14 Nov 2024 16:45:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2025-05-09T16:32:50.015Z

Reserved: 2024-01-29T20:51:26.011Z

Link: CVE-2024-24762

cve-icon Vulnrichment

Updated: 2024-08-01T23:28:11.928Z

cve-icon NVD

Status : Analyzed

Published: 2024-02-05T15:15:09.260

Modified: 2025-05-05T14:14:26.363

Link: CVE-2024-24762

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.