CVE-2024-24762
Fixed in a distro release EPSS 2%CVSS 7.5
`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.
Products: Kludex python-multipart, tiangolo fastapi, Encode Starlette
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | fastapi | 9d34ad0ee8a0dfbbcce06f76c2d5d851085024fc |
| PyPI | fastapi | 0.109.1 |
| PyPI | python-multipart | 0.0.7 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | reflex | 0.4.0-r0 |
| Debian 12 | python-multipart | no fix |
| Debian 13 | python-multipart | 0.0.9-1 |
| Debian 14 | python-multipart | 0.0.9-1 |
| Ubuntu Pro 22.04 LTS | python-multipart | 0.0.5-2ubuntu0.1~esm1 |
| Ubuntu Pro 24.04 LTS | python-multipart | 0.0.9-1ubuntu0.1~esm1 |
| Wolfi | reflex | 0.4.0-r0 |
| openSUSE Tumbleweed | python-fastapi | 0.138.0-2.1 |
| openSUSE Tumbleweed | python-python-multipart | 0.0.32-1.3 |