{"id":"UBUNTU-CVE-2020-25658","details":"It was found that python-rsa is vulnerable to Bleichenbacher timing attacks. An attacker can use this flaw via the RSA decryption API to decrypt parts of the cipher text encrypted with RSA.","modified":"2025-09-08T16:46:20Z","published":"2020-11-12T14:15:00Z","upstream":["CVE-2020-25658"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-25658"},{"type":"REPORT","url":"https://github.com/sybrenstuvel/python-rsa/issues/165"},{"type":"REPORT","url":"https://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-25658"}],"affected":[{"package":{"name":"python-rsa","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-rsa@3.1.2-1ubuntu0.1+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.2-1","3.1.2-1ubuntu0.1","3.1.2-1ubuntu0.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.2-1ubuntu0.1+esm1","binary_name":"python-rsa"},{"binary_version":"3.1.2-1ubuntu0.1+esm1","binary_name":"python3-rsa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25658.json"}},{"package":{"name":"python-rsa","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-rsa@3.2.3-1.1ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.4-1","3.2.3-1","3.2.3-1.1","3.2.3-1.1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.2.3-1.1ubuntu0.1~esm1","binary_name":"python-rsa"},{"binary_version":"3.2.3-1.1ubuntu0.1~esm1","binary_name":"python3-rsa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25658.json"}},{"package":{"name":"python-rsa","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-rsa@3.4.2-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.2-1","3.4.2-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.4.2-1ubuntu0.1~esm1","binary_name":"python-rsa"},{"binary_version":"3.4.2-1ubuntu0.1~esm1","binary_name":"python3-rsa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25658.json"}},{"package":{"name":"python-rsa","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-rsa@4.0-3ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0-2","4.0-3","4.0-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0-3ubuntu0.1~esm1","binary_name":"python3-rsa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25658.json"}},{"package":{"name":"python-rsa","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-rsa@4.8-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0-4","4.7.2-1","4.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.8-1","binary_name":"python3-rsa"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-25658.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}