CVE-2021-29063
JSON

7.5high

ReDOS in Mpmath

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
4.18% (higher than 91% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-f865-m6cq-j9vxPYSEC-2021-427

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
mpmath (PyPI)before 1.3.0, before 46d44c3c8f3244017fe1eb102d564eb4ab8ef750GitHub Advisory Database, PyPA Advisory Database
mpmath mpmathfrom 1.0.0 up to 1.2.1NVD
fedoraproject fedora33, 34, 35NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.

NVD (es)

Se ha descubierto una vulnerabilidad de denegación de servicio de expresiones regulares (ReDOS) en Mpmath v1.0.0 hasta v1.2.1 cuando se llama a la función mpmathify

References

https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.jsnot-applicable, third-party-advisory, web
https://github.com/npm/hosted-git-info/pull/76patch, third-party-advisory, web
https://www.npmjs.com/package/hosted-git-infoproduct, web
https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.mdexploit, patch, third-party-advisory, 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/46d44c3c8f3244017fe1eb102d564eb4ab8ef750fix, patch, third-party-advisory, web
https://github.com/mpmath/mpmath/releases/tag/1.3.0web
https://nvd.nist.gov/vuln/detail/CVE-2021-29063advisory
https://github.com/fredrik-johansson/mpmath/issues/548web
https://github.com/mpmath/mpmath/pull/570web

Sources

SourceRecordLicence
CVE ListCVE-2021-29063 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-f865-m6cq-j9vx changed 2026-09-10CC-BY-4.0
NVDCVE-2021-29063 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-427 changed 2023-11-08CC-BY-4.0