CVE-2021-29063
HIGH 7.5CVSS 3.1ReDOS in Mpmath
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.
- Published
- 21 Jun 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-770
- Also known as
- GHSA-f865-m6cq-j9vxPYSEC-2021-427
- Sources
- NVDJSONOSV GHSA-f865-m6cq-j9vxJSONOSV PYSEC-2021-427JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mpmath | mpmathcpe:2.3:a:mpmath:mpmath:*:*:*:*:*:*:*:* |
>= 1.0.0, <= 1.2.1 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| OSV | PyPI | mpmath | < 1.3.0 | 1.3.0 |
References
- https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/mpmath/mpmath/releases/tag/1.3.0 · WEB
- https://github.com/npm/hosted-git-info/pull/76 · Patch, Third Party Advisory, WEB
- 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://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/
- https://www.npmjs.com/package/hosted-git-info · Product, 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 21 Jun 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Aug 2021)