SecurityContext

CVE-2024-24762: python-multipart - Regular Expression Denial of Service

  • Cve: CVE-2024-24762
  • Name: python-multipart - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause high CPU usage leading to server slowdown or denial of service, affecting availability.
  • Remediation: Update to version 0.0.7 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.01523
  • Epss percentile: 0.75154
  • Assignee: [email protected]
  • Published at: 2024-02-05T15:15:09Z
  • Age in days: 1023
  • Modified at: 2026-06-17T07:14:48Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-24762
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity

Public exploits

UrlSourceAdded date
https://github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3pnvd2024-02-05

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4Patch
https://github.com/encode/starlette/commit/13e5c26a27f4903924624736abd6131b2da80cc5Patch
https://github.com/tiangolo/fastapi/commit/9d34ad0ee8a0dfbbcce06f76c2d5d851085024fcPatch
https://github.com/Kludex/python-multipart/security/advisories/GHSA-2jv5-9r88-3w3pExploit, Vendor Advisory
https://github.com/andrew-d/python-multipart/blob/d3d16dae4b061c34fe9d3c9081d9800c49fc1f7a/multipart/multipart.py#L72-L74Product
https://github.com/tiangolo/fastapi/releases/tag/0.109.1Product

Products

ProductAffectedPlatform boundSourcesUrl
fastapiexpert:python-multipart< 0.0.7nonvd/v1/products/fastapiexpert/python-multipart

Projects

Same in every row:

  • Indexed: yes
RepositoryLink kindsUrl
tiangolo/fastapicommit, releases/v1/repositories/tiangolo/fastapi
encode/starlettecommit/v1/repositories/encode/starlette
kludex/python-multipartcommit, package, security_advisory/v1/repositories/kludex/python-multipart

Index

  • Repositories: 1759
  • Repositories high signal: 1068
  • Packages: 2

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-02-05
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts