{"id":"CVE-2021-29063","aliases":["CVE-2021-29063","GHSA-f865-m6cq-j9vx","PYSEC-2021-427"],"related":[],"kind":"vulnerability","state":"published","title":"ReDOS in Mpmath","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-06-21T00:00:00.000Z","modified":"2026-09-10T03:49:07.864Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"PyPI","package":"mpmath","purl":"pkg:pypi/mpmath","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","lastAffected":"1.2.1"}],"vendor":"mpmath","product":"mpmath","cpe":"cpe:2.3:a:mpmath:mpmath:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"46d44c3c8f3244017fe1eb102d564eb4ab8ef750"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.0"}],"ecosystem":"PyPI","package":"mpmath","purl":"pkg:pypi/mpmath","repo":"https://github.com/fredrik-johansson/mpmath","source":"pysec"}],"references":[{"url":"https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js","tags":["not-applicable","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/npm/hosted-git-info/pull/76","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.npmjs.com/package/hosted-git-info","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md","tags":["exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mpmath/mpmath/releases/tag/1.3.0","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29063","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fredrik-johansson/mpmath/issues/548","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mpmath/mpmath/pull/570","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/fredrik-johansson/mpmath","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-f865-m6cq-j9vx","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29063","url":"https://www.cve.org/CVERecord?id=CVE-2021-29063","licence":"CVE Terms of Use","modified":"2024-08-03T21:55:12.403Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f865-m6cq-j9vx","url":"https://github.com/advisories/GHSA-f865-m6cq-j9vx","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:07.864Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29063","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29063","licence":"Public domain","modified":"2026-06-17T03:47:13.330Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-427","url":"https://osv.dev/vulnerability/PYSEC-2021-427","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:32.795Z"}],"updatedAt":"2026-11-25T22:58:02.058Z","epss":{"score":0.04179,"percentile":0.91146,"date":"2026-12-01T12:00:22.000Z"}}