CVE-2024-24762
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.
How to fix
- fastapiexpert python-multipart0.0.7 or later
- python-multipart0.0.7 or later
- fastapi0.109.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| fastapiexpert python-multipart | v < 0.0.7 | 0.0.7 |
| python-multipartPyPI | v < 0.0.7 | 0.0.7 |
| fastapiPyPI | v < 0.109.1 | 0.109.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.