{"id":"CVE-2021-29063","aliases":["DEBIAN-CVE-2021-29063","EUVD-2021-0137","GHSA-f865-m6cq-j9vx","MGASA-2021-0479","PYSEC-2021-427","UBUNTU-CVE-2021-29063","USN-7160-1","openSUSE-SU-2024:13280-1","openSUSE-SU-2026:12018-1"],"status":"published","title":"ReDOS in Mpmath","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.04179,"percentile":0.90995,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2021-06-21T00:00:00Z","modified":"2026-10-23T18:02:46Z","fixes":[{"ecosystem":"PyPI","package":"mpmath","fixed_in":["1.3.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"mpmath","fixed_in":["1.2.1-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"mpmath","fixed_in":["1.2.1-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"mpmath","fixed_in":["1.2.1-2"],"sources":["osv"]},{"ecosystem":"Mageia:8","package":"python-mpmath","fixed_in":["1.1.0-5.1.mga8"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mpmath","fixed_in":["0.19-3ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mpmath","fixed_in":["1.0.0-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mpmath","fixed_in":["1.1.0-2ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"python-mpmath","fixed_in":["1.3.0-3.4"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-2"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0.0","1.1.0","1.2.1"]},{"source":"osv","ecosystem":"Mageia:8","package":"python-mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0-5.1.mga8"}]}]},{"source":"osv","ecosystem":"PyPI","package":"mpmath","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"46d44c3c8f3244017fe1eb102d564eb4ab8ef750"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0.0","1.1.0","1.2.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19-3ubuntu0.1~esm1"}]}],"versions":["0.19-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.1~esm1"}]}],"versions":["0.19-3","1.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0-2ubuntu0.1~esm1"}]}],"versions":["1.1.0-1","1.1.0-1build1","1.1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19-3ubuntu0.1~esm1"}]}],"versions":["0.19-3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.1~esm1"}]}],"versions":["0.19-3","1.0.0-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0-2ubuntu0.1~esm1"}]}],"versions":["1.1.0-1","1.1.0-1build1","1.1.0-2"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-mpmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-3.4"}]}]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"mpmath","product":"mpmath"}],"references":[{"url":"https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js","tags":["x_transferred","Not Applicable","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/npm/hosted-git-info/pull/76","tags":["x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://www.npmjs.com/package/hosted-git-info","tags":["x_transferred","Product","web","report"]},{"url":"https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://github.com/fredrik-johansson/mpmath/commit/46d44c3c8f3244017fe1eb102d564eb4ab8ef750","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/mpmath/mpmath/releases/tag/1.3.0","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29063","tags":["advisory"]},{"url":"https://github.com/fredrik-johansson/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833","tags":["web"]},{"url":"https://github.com/fredrik-johansson/mpmath/issues/548","tags":["web"]},{"url":"https://github.com/mpmath/mpmath/pull/570","tags":["web"]},{"url":"https://github.com/mpmath/mpmath/commit/c811b37c65a4372a7ce613111d2a508c204f9833","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mpmath/PYSEC-2021-427.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-f865-m6cq-j9vx","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EIUX3XWY2K3MSO7QXMZXQQYAURARSPC5","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29063","tags":["advisory"]},{"url":"https://github.com/fredrik-johansson/mpmath","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2021-0479.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29537","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3M5O55E7VUDMXCPQR6MQTOIFDKHP36AA/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MS2U6GLXQSRZJE2HVUAUMVFR2DWQLCZG/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2021-29063","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29063","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7160-1","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-29063","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-29063","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.","status":"published","published":"2021-06-21T00:00:00Z","modified":"2024-08-03T21:55:12.403Z","updated_at":"2026-11-02T14:33:06.32268Z"}],"euvd":[{"id":"EUVD-2021-0137","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.","status":"published","published":"2021-06-21T00:00:00Z","modified":"2024-08-03T21:55:12Z","updated_at":"2026-11-03T03:24:46.117926Z"}],"ghsa":[{"id":"GHSA-f865-m6cq-j9vx","title":"ReDOS in Mpmath","description":"A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.","status":"published","published":"2021-08-09T20:44:51Z","modified":"2024-10-03T21:26:30Z","cvss":[{"version":"4.0","score":8.7,"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","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:38:07.852618Z"}],"nvd":[{"id":"CVE-2021-29063","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.","status":"published","published":"2021-06-21T20:15:09.477Z","modified":"2026-06-17T03:47:13.33Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:06:54.892562Z"}],"osv":[{"id":"CVE-2021-29063","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.","status":"published","published":"2021-06-21T20:15:09.477Z","modified":"2026-10-20T10:54:38.719328232Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"DEBIAN-CVE-2021-29063","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.","status":"published","published":"2021-06-21T20:15:09.477Z","modified":"2026-10-23T18:02:46.74518821Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"GHSA-f865-m6cq-j9vx","title":"ReDOS in Mpmath","description":"A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.","status":"published","published":"2021-08-09T20:44:51Z","modified":"2026-09-10T03:49:07.864685752Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:46:46.006631Z"},{"id":"UBUNTU-CVE-2021-29063","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.","status":"published","published":"2021-06-21T20:15:00Z","modified":"2026-02-04T02:39:06.517026Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"MGASA-2021-0479","title":"Updated python-mpmath packages fix security vulnerability","description":"Fix CVE-2021-29063 regular expression denial of service\n","status":"published","published":"2021-10-13T19:39:52Z","modified":"2026-04-16T04:42:45.069426744Z","updated_at":"2026-11-02T15:49:41.849028Z"},{"id":"openSUSE-SU-2024:13280-1","title":"python310-mpmath-1.3.0-1.1 on GA media","description":"These are all security issues fixed in the python310-mpmath-1.3.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:50:30.105257Z","updated_at":"2026-11-02T16:58:36.025801Z"},{"id":"openSUSE-SU-2026:12018-1","title":"python313-mpmath-1.3.0-3.4 on GA media","description":"These are all security issues fixed in the python313-mpmath-1.3.0-3.4 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-04T00:00:00Z","modified":"2026-10-05T10:15:30.618645247Z","updated_at":"2026-11-02T16:58:40.245664Z"},{"id":"PYSEC-2021-427","description":"A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in Mpmath v1.0.0 when the mpmathify function is called.","status":"published","published":"2021-06-21T20:15:00Z","modified":"2023-11-08T04:05:32.79511Z","updated_at":"2026-11-02T15:52:53.119977Z"},{"id":"USN-7160-1","title":"mpmath vulnerability","description":"It was discovered Mpmath incorrectly handled certain regular expressions.\nAn attacker could possibly use this issue to cause Mpmath to consume\nresources, leading to a denial of service.\n","status":"published","published":"2024-12-15T23:03:29Z","modified":"2026-06-25T13:32:29.856838896Z","updated_at":"2026-11-02T16:58:18.876384Z"}]}}
