# CVE-2021-29063: ReDOS in Mpmath

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.18%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T00:00:00.000Z
- Modified: 2026-09-10T03:49:07.864Z
- Also known as: GHSA-f865-m6cq-j9vx, PYSEC-2021-427
- Weaknesses: CWE-770
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mpmath (PyPI): before 1.3.0; before 46d44c3c8f3244017fe1eb102d564eb4ab8ef750
- mpmath mpmath: from 1.0.0 up to 1.2.1
- fedoraproject fedora: 33; 34; 35

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md> (exploit, patch, third-party-advisory, web)
- <https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js> (not-applicable, third-party-advisory, web)
- <https://github.com/npm/hosted-git-info/pull/76> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/hosted-git-info> (product, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5/> (vendor-advisory)
- <https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750> (fix, patch, third-party-advisory, web)
- <https://github.com/mpmath/mpmath/releases/tag/1.3.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29063> (advisory)
- <https://github.com/fredrik-johansson/mpmath/issues/548> (web)
- <https://github.com/mpmath/mpmath/pull/570> (web)
- <https://github.com/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833> (web)
- <https://github.com/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml> (web)
- <https://github.com/fredrik-johansson/mpmath> (package)
- <https://github.com/advisories/GHSA-f865-m6cq-j9vx> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/> (web)

## Sources

- CVE List: [CVE-2021-29063](https://www.cve.org/CVERecord?id=CVE-2021-29063), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-f865-m6cq-j9vx](https://github.com/advisories/GHSA-f865-m6cq-j9vx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-29063](https://nvd.nist.gov/vuln/detail/CVE-2021-29063), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-427](https://osv.dev/vulnerability/PYSEC-2021-427), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-29063 · Whole record: https://cve.day/CVE-2021-29063.json · Rebuilt by cve.day 2026-11-25T22:58:02.058Z
