Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mpmath
  4. ›
  5. CVE-2021-29063

CVE-2021-29063: ReDOS in Mpmath

August 9, 2021 (updated October 3, 2024)

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.

References

  • github.com/advisories/GHSA-f865-m6cq-j9vx
  • github.com/fredrik-johansson/mpmath
  • github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750
  • github.com/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
  • github.com/fredrik-johansson/mpmath/issues/548
  • github.com/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
  • github.com/mpmath/mpmath/pull/570
  • github.com/mpmath/mpmath/releases/tag/1.3.0
  • github.com/npm/hosted-git-info/pull/76
  • github.com/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml
  • github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md
  • github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG
  • nvd.nist.gov/vuln/detail/CVE-2021-29063
  • www.npmjs.com/package/hosted-git-info

Code Behaviors & Features

Detect and mitigate CVE-2021-29063 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.0

Fixed versions

  • 1.3.0

Solution

Upgrade to version 1.3.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/mpmath/CVE-2021-29063.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:31 +0000.