{"id":"UBUNTU-CVE-2021-29063","details":"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.","modified":"2026-02-04T02:39:06.517026Z","published":"2021-06-21T20:15:00Z","related":["USN-7160-1"],"upstream":["CVE-2021-29063"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-29063"},{"type":"REPORT","url":"https://github.com/npm/hosted-git-info/pull/76"},{"type":"REPORT","url":"https://github.com/yetingli/PoCs/blob/main/CVE-2021-29063/Mpmath.md"},{"type":"REPORT","url":"https://github.com/yetingli/SaveResults/blob/main/js/hosted-git-info.js"},{"type":"REPORT","url":"https://www.npmjs.com/package/hosted-git-info"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-29063"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7160-1"}],"affected":[{"package":{"name":"mpmath","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/mpmath@0.19-3ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.19-3ubuntu0.1~esm1"}]}],"versions":["0.19-3"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mpmath","binary_version":"0.19-3ubuntu0.1~esm1"},{"binary_name":"python3-mpmath","binary_version":"0.19-3ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29063.json"}},{"package":{"name":"mpmath","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/mpmath@1.0.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0-1ubuntu0.1~esm1"}]}],"versions":["0.19-3","1.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-mpmath","binary_version":"1.0.0-1ubuntu0.1~esm1"},{"binary_name":"python3-mpmath","binary_version":"1.0.0-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29063.json"}},{"package":{"name":"mpmath","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/mpmath@1.1.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-mpmath","binary_version":"1.1.0-2ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29063.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}