Read the docs
TI-2024-16279 Aliases CVE-2024-24762GHSA-2jv5-9r88-3w3p

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

Priority HIGH 72CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

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

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01523 74th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed python-multipart (Kludex): 0.0.7fastapi (tiangolo): 0.109.1+2 more products

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Kludexpython-multipartbefore 0.0.70.0.7Patch availableCNA
tiangolofastapibefore 0.109.10.109.1Patch availableCNA
encodestarlettebefore 0.36.20.36.2Patch availableCNA
—python-multipart (PyPI)before 0.0.70.0.7Patch availableGHSA-2jv5-9r88-3w3p
  • python-multipart VendorKludex Affected before 0.0.7 Fixed in 0.0.7 Patch available CNA
  • fastapi Vendortiangolo Affected before 0.109.1 Fixed in 0.109.1 Patch available CNA
  • starlette Vendorencode Affected before 0.36.2 Fixed in 0.36.2 Patch available CNA
  • python-multipart (PyPI) Vendor— Affected before 0.0.7 Fixed in 0.0.7 Patch available GHSA-2jv5-9r88-3w3p

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:*before 0.0.7VulnerableFastapiexpert
cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:*before 0.36.2Running onencode
cpe:2.3:a:tiangolo:fastapi:*:*:*:*:*:*:*:*before 0.109.1Running ontiangolo
  • cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:* Versions before 0.0.7 Vulnerable ·Fastapiexpert
  • cpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:* Versions before 0.36.2 Running on ·encode
  • cpe:2.3:a:tiangolo:fastapi:*:*:*:*:*:*:*:* Versions before 0.109.1 Running on ·tiangolo

Remediation

  • Fix · CNA python-multipart (Kludex) Fixed in 0.0.7
  • Fix · CNA fastapi (tiangolo) Fixed in 0.109.1
  • Fix · CNA starlette (encode) Fixed in 0.36.2
  • Fix · GHSA-2jv5-9r88-3w3p python-multipart (PyPI) Fixed in 0.0.7 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-24762
  2. 2026-10-03 Alias added: GHSA-2jv5-9r88-3w3p

References

  • TI-2025-38917 Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse CVSS 3.1HIGH 7.5
  • TI-2026-30841 Python-Multipart: Denial of Service via unbounded multipart part headers CVSS 3.1HIGH 7.5
  • TI-2024-36140 python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary CVSS 3.1HIGH 7.5

Sources