CVE-2021-29063
ReDOS 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2021-29063- 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 - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-770
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-29063- Updated
- 2026-11-02
EUVDEUVD-2021-0137 No score
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.
- Record
EUVD-2021-0137- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f865-m6cq-j9vx
8.7
ReDOS in Mpmath
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.
- Record
GHSA-f865-m6cq-j9vx- CVSS 4.0
- 8.7 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 - 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 - Weakness
- CWE-770
- Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2021-29063- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-29063
7.5
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.
- Record
DEBIAN-CVE-2021-29063- 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 - Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-f865-m6cq-j9vx
8.7
ReDOS in Mpmath
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.
- Record
GHSA-f865-m6cq-j9vx- CVSS 4.0
- 8.7 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 - 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 - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-29063
7.5
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.
- Record
UBUNTU-CVE-2021-29063- 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 - Updated
- 2026-11-02
OSVMGASA-2021-0479 No score
Updated python-mpmath packages fix security vulnerability
Fix CVE-2021-29063 regular expression denial of service
- Record
MGASA-2021-0479- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13280-1 No score
python310-mpmath-1.3.0-1.1 on GA media
These are all security issues fixed in the python310-mpmath-1.3.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13280-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:12018-1 No score
python313-mpmath-1.3.0-3.4 on GA media
These are all security issues fixed in the python313-mpmath-1.3.0-3.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:12018-1- Updated
- 2026-11-02
OSVPYSEC-2021-427 No score
A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.
- Record
PYSEC-2021-427- Updated
- 2026-11-02
OSVUSN-7160-1 No score
mpmath vulnerability
It was discovered Mpmath incorrectly handled certain regular expressions. An attacker could possibly use this issue to cause Mpmath to consume resources, leading to a denial of service.
- Record
USN-7160-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mpmathPyPI |
before 1.3.0 | 1.3.0 |
mpmathDebian:12 |
before 1.2.1-2 | 1.2.1-2 |
mpmathDebian:13 |
before 1.2.1-2 | 1.2.1-2 |
mpmathDebian:14 |
before 1.2.1-2 | 1.2.1-2 |
mpmathPyPI |
before 1.3.0, plus listed versions 0.10.100.110.120.13 Show 17 moreShow less0.140.150.160.170.180.190.20.30.40.50.60.70.80.91.0.01.1.01.2.1 |
1.3.0 |
python-mpmathMageia:8 |
before 1.1.0-5.1.mga8 | 1.1.0-5.1.mga8 |
mpmathUbuntu:Pro:16.04:LTS |
before 0.19-3ubuntu0.1~esm1, plus listed versions 0.19-3 |
0.19-3ubuntu0.1~esm1 |
mpmathUbuntu:Pro:18.04:LTS |
before 1.0.0-1ubuntu0.1~esm1, plus listed versions 0.19-31.0.0-1 |
1.0.0-1ubuntu0.1~esm1 |
mpmathUbuntu:Pro:20.04:LTS |
before 1.1.0-2ubuntu0.1~esm1, plus listed versions 1.1.0-11.1.0-1build11.1.0-2 |
1.1.0-2ubuntu0.1~esm1 |
python-mpmathopenSUSE:Tumbleweed |
before 1.3.0-3.4 | 1.3.0-3.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-29063 is a high vulnerability (CVSS 7.5) in Mpmath, published June 21, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.18%, the 90th percentile. Fixed in mpmath 1.3.0.
References
github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js
github.com/npm/hosted-git-info/pull/76
npmjs.com/package/hosted-git-info
github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG
Show 23 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5
github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750
github.com/mpmath/mpmath/releases/tag/1.3.0
nvd.nist.gov/vuln/detail/CVE-2021-29063
github.com/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
github.com/fredrik-johansson/mpmath/issues/548
github.com/mpmath/mpmath/pull/570
github.com/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833
github.com/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml
github.com/advisories/GHSA-f865-m6cq-j9vx
lists.fedoraproject.org/archives/list/[email protected]/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA
lists.fedoraproject.org/archives/list/[email protected]/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5
lists.fedoraproject.org/archives/list/[email protected]/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG
security-tracker.debian.org/tracker/CVE-2021-29063
github.com/fredrik-johansson/mpmath
advisories.mageia.org/MGASA-2021-0479.html
bugs.mageia.org/show_bug.cgi?id=29537
lists.fedoraproject.org/archives/list/[email protected]/thread/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA
lists.fedoraproject.org/archives/list/[email protected]/thread/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG
ubuntu.com/security/CVE-2021-29063
cve.org/CVERecord?id=CVE-2021-29063
ubuntu.com/security/notices/USN-7160-1
suse.com/security/cve/CVE-2021-29063