CVE-2020-13757 Python-RSA decryption of ciphertext leads to DoS

High 7.5 Published Updated

An attacker can cause excessive memory allocation or infer library usage by exploiting improper handling of leading null bytes during RSA decryption.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-13757?

CVE-2020-13757 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 1 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Python-RSA before 4.1 ignores leading '\0' bytes during decryption of ciphertext. This could conceivably have a security-relevant impact, e.g., by helping an attacker to infer that an application uses Python-RSA, or if the length of accepted ciphertext affects application behavior (such as by causing excessive memory allocation).

Weakness: CWE-327

Which versions are affected by CVE-2020-13757?

3 open source packages ship an affected version, including rsa. It affects 3 products.

PackageAffectedFixed in
rsa PyPIAll versions4.1
rsa PyPIAll versions4.1
rsa PyPIAll versions4.1
Linux distribution packages (23)
python-rsa SUSE:Enterprise Storage 6All versions3.4.2-3.4.1
python-rsa SUSE:HPE Helion OpenStack 8All versions3.4.2-3.3.1
python-rsa SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Module for Package Hub 15 SP2All versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Module for Public Cloud 12All versions3.1.4-12.16.1
python-rsa SUSE:Linux Enterprise Module for Public Cloud 15All versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Server 15 SP1-BCLAll versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions3.4.2-3.4.1
python-rsa SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions3.4.2-3.4.1
python-rsa SUSE:Manager Proxy 4.0All versions3.4.2-3.4.1
python-rsa SUSE:Manager Retail Branch Server 4.0All versions3.4.2-3.4.1
python-rsa SUSE:Manager Server 4.0All versions3.4.2-3.4.1
python-rsa SUSE:OpenStack Cloud 7All versions3.1.4-12.16.1
python-rsa SUSE:OpenStack Cloud 8All versions3.4.2-3.3.1
python-rsa SUSE:OpenStack Cloud 9All versions3.4.2-4.4.1
python-rsa SUSE:OpenStack Cloud Crowbar 8All versions3.4.2-3.3.1
python-rsa SUSE:OpenStack Cloud Crowbar 9All versions3.4.2-4.4.1
python-rsa openSUSE:Leap 15.2All versions3.4.2-lp152.4.3.1
python-rsa openSUSE:Leap 15.3All versions3.4.2-3.4.1

Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Python-Rsa Project Python-Rsa.

How do I fix CVE-2020-13757?

Upgrade rsa to 4.1 or later.

Is CVE-2020-13757 being exploited?

There is no known exploitation of CVE-2020-13757 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-13757, GHSA-537h-rv9q-vvph, MGASA-2020-0364, PYSEC-2020-99, SUSE-SU-2021:2008-1, SUSE-SU-2021:2237-1 and 7 more.

Is CVE-2020-13757 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free