CVE-2020-36242 PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

Critical 9.1 Published Updated

Integer overflow in Python cryptography library allows buffer overflow during symmetric encryption, potentially leading to code execution or denial of service.

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-36242?

CVE-2020-36242 is a critical vulnerability in Fedoraproject Fedora, published on 7 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.

Weakness: CWE-787, CWE-190

Which versions are affected by CVE-2020-36242?

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

PackageAffectedFixed in
cryptography PyPIFrom 3.13.3.2
cryptography PyPIFrom 3.13.3.2
cryptography PyPIFrom 3.13.3.2
Linux distribution packages (37)
python-bcrypt SUSE:Enterprise Storage 6All versions3.1.4-150100.6.2.1
python-cffi SUSE:Enterprise Storage 6All versions1.15.0-150000.4.11.2
python-cryptography SUSE:Enterprise Storage 6All versions2.1.4-4.9.2
python-cryptography SUSE:Enterprise Storage 6All versions2.9.2-150100.7.8.2
python-cryptography SUSE:HPE Helion OpenStack 8All versions2.0.3-3.10.1
python-cryptography SUSE:HPE Helion OpenStack 8All versions2.1.4-7.34.1
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions2.1.4-4.9.2
python-bcrypt SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions3.1.4-150100.6.2.1
python-cffi SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.15.0-150000.4.11.2
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.1.4-4.9.2
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions2.9.2-150100.7.8.2
python-cryptography SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions2.1.4-4.9.2
python-cryptography SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions2.1.4-4.9.2
python-cryptography SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions2.8-3.6.1
python-aliyun-python-sdk SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.0-150100.3.7.4
python-aliyun-python-sdk-aas SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.1.1-150100.3.5.5
python-aliyun-python-sdk-acm SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.1-150100.3.7.5
python-aliyun-python-sdk-acms-open SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.0-150100.3.7.5
python-aliyun-python-sdk-actiontrail SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.0.3-150100.3.7.5
python-aliyun-python-sdk-adb SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.5-150100.3.7.5
python-aliyun-python-sdk-address-purification SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.0-150100.3.7.5
python-aliyun-python-sdk-aegis SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.6-150100.3.7.5
python-aliyun-python-sdk-afs SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.1-150100.3.7.5
python-aliyun-python-sdk-airec SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.0.0-150100.3.7.5
python-aliyun-python-sdk-alidns SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.6.20-150100.3.7.5
python-aliyun-python-sdk-aligreen-console SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.3-150100.3.7.5
python-aliyun-python-sdk-alimt SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions3.0.30-150100.3.7.5
python-aliyun-python-sdk-alinlp SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.16-150100.3.7.5
python-aliyun-python-sdk-aliyuncvc SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.10.2-150100.3.7.5
python-aliyun-python-sdk-amqp-open SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.1.1-150100.3.5.5
python-aliyun-python-sdk-appmallsservice SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.1.1-150100.3.7.5
python-aliyun-python-sdk-arms SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.5.22-150100.3.7.5
python-aliyun-python-sdk-arms4finance SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions2.0.2-150100.3.7.5
python-aliyun-python-sdk-baas SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.1-150100.3.7.5
python-aliyun-python-sdk-brinekingdom SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.0.1-150100.3.7.5
python-aliyun-python-sdk-bss SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions0.0.4-150100.3.7.5
python-aliyun-python-sdk-bssopenapi SUSE:Linux Enterprise Module for Public Cloud 15 SP1All versions1.6.2-150100.3.7.5

Products include Cryptography.io Cryptography, Fedoraproject Fedora, Oracle Communications Cloud Native Core Network Function Cloud Native Environment.

How do I fix CVE-2020-36242?

Upgrade cryptography to 3.3.2 or later.

Is CVE-2020-36242 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2020-36242, DEBIAN-CVE-2020-36242, GHSA-rhm9-p9w5-fwm7, MGASA-2021-0129, OESA-2021-1089, PYSEC-2021-63 and 8 more.

Is CVE-2020-36242 in your software?

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

Check your SBOMs for free