python-multipart vulnerable to content-type header Regular expression Denial of Service
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
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Kludex | python-multipart | <0.0.7 | 0.0.7 |
| encode | <0.36.2 | 0.36.2 | |
| tiangolo | <0.109.1 | 0.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