CVE-2021-29063 json
ReDOS in Mpmath
published 2021-06-21 5 y ago modified 2026-09-10 1 mo ago also GHSA-f865-m6cq-j9vx , PYSEC-2021-427 , EUVD-2021-0137
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.2%
- EPSS 4.2% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mpmath 1.3.0
- mpmath Debian 14, Debian 13, Debian 12 1.2.1-2
debian advisories DEBIAN-CVE-2021-29063
- mpmath Ubuntu Pro 16.04 LTS 0.19-3ubuntu0.1~esm1
- mpmath Ubuntu Pro 18.04 LTS 1.0.0-1ubuntu0.1~esm1
- mpmath Ubuntu Pro 20.04 LTS 1.1.0-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2021-29063
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-mpmath openSUSE Tumbleweed 1.3.0-3.4
opensuse advisories openSUSE-SU-2026:12018-1
- github.com/fredrik-johansson/mpmath@46d44c3 commit
- github.com/fredrik-johansson/mpmath@c811b37 commit
- github.com/mpmath/mpmath@c811b37 commit
- github.com/npm/hosted-git-info#76 pull request
- github.com/mpmath/mpmath#570 pull request
- github.com/mpmath/mpmath/releases/tag/1.3.0 release
- github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-29063 updated cvss 7.5
python-mpmath: Regular expression denial of service in the mpmathify function
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.18% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mpmath | <1.3.0 |
1.3.0 |
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/npm/hosted-git-info/pull/76
web, patch, third-party-advisory
-
github.com
/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750
web, patch, third-party-advisory
-
github.com
/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md
web, exploit, patch, third-party-advisory
-
github.com
/mpmath/mpmath/pull/570
web
-
github.com
/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
web
-
github.com
/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5/
vendor-advisory
-
github.com
/yetingli/SaveResults/blob/main/js/hosted-git-info.js
web, not-applicable, third-party-advisory
-
npmjs.com
/package/hosted-git-info
web, product
-
github.com
/mpmath/mpmath/releases/tag/1.3.0
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-29063
advisory
-
github.com
/fredrik-johansson/mpmath/issues/548
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA
web
-
github.com
/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml
web
-
github.com
/fredrik-johansson/mpmath
package
-
github.com
/advisories/GHSA-f865-m6cq-j9vx
advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/
web
Sources
- CVE List CVE-2021-29063
- GitHub Advisory GHSA-f865-m6cq-j9vx
- NVD CVE-2021-29063
- OSV PYSEC-2021-427
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.