CVE-2024-24762

published 5 Feb 2024 · updated 9 May 2025

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

7.5HighCVSS 7.5EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in python-multipart 0.0.7, 0.36.2 and 0.109.1.

`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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Kludexpython-multipart<0.0.70.0.7
encode<0.36.20.36.2
tiangolo<0.109.10.109.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kludex, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-24762 severity on Zeptric[![CVE-2024-24762](https://zeptric.io/badge/cve/CVE-2024-24762.svg)](https://zeptric.io/cve/CVE-2024-24762)