Live threats

All CVEs / Mpmath

CVE-2021-29063Mpmath

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mpmath.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mpmathmpmath≥ 1.0.0 ≤ 1.2.1
fedoraprojectfedora33
fedoraprojectfedora34
fedoraprojectfedora35

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.