CVE-2021-29063Mpmath
High 7.5 No auth needed
Follow: this CVE · Mpmath · Mpmath We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Jun 21, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Mpmath.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mpmath |
< 1.3.0 |
1.3.0 |
pip install "mpmath>=1.3.0" |
| PyPI | mpmath |
< 1.3.0 |
1.3.0 |
pip install "mpmath>=1.3.0" |
Per OSV / GitHub Advisories (GHSA-f865-m6cq-j9vx, PYSEC-2021-427). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mpmath | mpmath | ≥ 1.0.0 ≤ 1.2.1 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
Official advisories
- python313-mpmath-1.3.0-3.4 on GA media · SUSE · openSUSE-SU-2026:12018-1 · Oct 4, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Not Applicable Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.npmjs.com Product