CVE-2024-24762

Uncontrolled Resource Consumption in pypi/starlette

Identifiers

GHSA-2jv5-9r88-3w3p, CVE-2024-24762

Package Slug

pypi/starlette

Vulnerability

Uncontrolled Resource Consumption

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.

Affected Versions

All versions up to 0.36.1

Solution

Upgrade to version 0.36.2 or above.

Last Modified

2024-02-19

source