SecurityContext

CVE-2021-29063: Mpmath - Regular Expression Denial of Service

  • Cve: CVE-2021-29063
  • Name: Mpmath - Regular Expression Denial of Service
  • Description: A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 through v1.2.1 when the mpmathify function is called.
  • Impact: Attackers can cause denial of service by triggering excessive regex processing, leading to service unavailability.
  • Remediation: Update to the latest version of Mpmath where the vulnerability is fixed.
  • 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.04179
  • Epss percentile: 0.91072
  • Assignee: [email protected]
  • Published at: 2021-06-21T20:15:09Z
  • Age in days: 1982
  • Modified at: 2026-06-17T03:47:13Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 8
  • Products total: 2
  • Oss: yes
  • Projects total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-29063
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-770Allocation of Resources Without Limits or Throttling

Public exploits

UrlSourceAdded date
https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.mdnvd2021-06-21

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750Patch, Third Party Advisory
https://github.com/npm/hosted-git-info/pull/76Patch, Third Party Advisory
https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.mdExploit, Patch, Third Party Advisory
https://www.npmjs.com/package/hosted-git-infoProduct
https://github.com/mpmath/mpmath/releases/tag/1.3.0
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/

Products

ProductAffectedPlatform boundSourcesUrl
mpmath:mpmath>= 1.0.0, <= 1.2.1nonvd/v1/products/mpmath/mpmath
fedoraproject:fedora= 35, = 34, = 33nonvd/v1/products/fedoraproject/fedora

Projects

Same in every row:

  • Indexed: yes
RepositoryLink kindsUrl
fredrik-johansson/mpmathcommit, issues, package/v1/repositories/fredrik-johansson/mpmath
mpmath/mpmathcommit, pull, releases/v1/repositories/mpmath/mpmath
npm/hosted-git-infopull/v1/repositories/npm/hosted-git-info

Index

  • Repositories: 42
  • Repositories high signal: 27
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-06-21
  • Remote: yes
  • Exposed hosts: 49161
  • 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