Live threats

All CVEs / Fastapiexpert

CVE-2024-24762Fastapiexpert Python-multipart

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Feb 5, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

`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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-multipart.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI fastapi < 0.109.1 0.109.1 pip install "fastapi>=0.109.1"
PyPI python-multipart < 0.0.7 0.0.7 pip install "python-multipart>=0.0.7"
PyPI python-multipart < 0.0.7 0.0.7 pip install "python-multipart>=0.0.7"

Per OSV / GitHub Advisories (PYSEC-2024-38, GHSA-2jv5-9r88-3w3p, PYSEC-2026-1850). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
fastapiexpertpython-multipart< 0.0.7

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.