# CVE-2020-25658: Timing attacks in python-rsa

Source: https://junglewise.ai/threats/cve-2020-25658-timing-attacks-in-python-rsa  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-11-12  
License: CC BY 4.0 with a link back

CVE-2020-25658 · Severity: low · CVSS 3.1 · Published 2020-11-12

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.

Technologies: [rsa (PyPI)](https://junglewise.ai/threats/technologies/pypi-rsa). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2020-25658 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-25658 being exploited in the wild.

**How severe is CVE-2020-25658?** Low severity, with a CVSS score of 3.1, published 12 November 2020.

**Which products and versions are affected?** rsa (PyPI) ECOSYSTEM:introduced=2.1,fixed=4.7.

**Is there a fix for CVE-2020-25658?** Yes. rsa (PyPI): upgrade to 4.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-25658?** Check whether you run rsa (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- rsa (PyPI): upgrade to 4.7 or later

  ```sh
  pip install "rsa>=4.7"
  ```


## Affected products

- rsa (PyPI) ECOSYSTEM:introduced=2.1,fixed=4.7

## Identifiers

- CVE-2020-25658
- GHSA-xrx6-fmxq-rjj2
- PYSEC-2020-100

## Related threats

- [PYSEC-2020-99 - Python-RSA before 4.1 ignores leading '\0' bytes during decryption of ciphertext. This could conceivably have a security-relevant impact, e.](https://junglewise.ai/threats/cve-2020-13757-python-rsa-decryption-of-ciphertext-leads-to-dos)
- [Python RSA allows attackers to spoof signatures](https://junglewise.ai/threats/cve-2016-1494-python-rsa-allows-attackers-to-spoof-signatures)
