CVE-2020-36242 PyCA Cryptography symmetrically encrypting large values can lead to integer overflow
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.
Which versions are affected by CVE-2020-36242?
3 open source packages ship an affected version, including cryptography. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
cryptography PyPI | From 3.1 | 3.3.2 |
cryptography PyPI | From 3.1 | 3.3.2 |
cryptography PyPI | From 3.1 | 3.3.2 |
Linux distribution packages (37)
python-bcrypt SUSE:Enterprise Storage 6 | All versions | 3.1.4-150100.6.2.1 |
python-cffi SUSE:Enterprise Storage 6 | All versions | 1.15.0-150000.4.11.2 |
python-cryptography SUSE:Enterprise Storage 6 | All versions | 2.1.4-4.9.2 |
python-cryptography SUSE:Enterprise Storage 6 | All versions | 2.9.2-150100.7.8.2 |
python-cryptography SUSE:HPE Helion OpenStack 8 | All versions | 2.0.3-3.10.1 |
python-cryptography SUSE:HPE Helion OpenStack 8 | All versions | 2.1.4-7.34.1 |
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | All versions | 2.1.4-4.9.2 |
python-bcrypt SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 3.1.4-150100.6.2.1 |
python-cffi SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.15.0-150000.4.11.2 |
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.1.4-4.9.2 |
python-cryptography SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 2.9.2-150100.7.8.2 |
python-cryptography SUSE:Linux Enterprise High Performance Computing 15-ESPOS | All versions | 2.1.4-4.9.2 |
python-cryptography SUSE:Linux Enterprise High Performance Computing 15-LTSS | All versions | 2.1.4-4.9.2 |
python-cryptography SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 2.8-3.6.1 |
python-aliyun-python-sdk SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.0-150100.3.7.4 |
python-aliyun-python-sdk-aas SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.1.1-150100.3.5.5 |
python-aliyun-python-sdk-acm SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.1-150100.3.7.5 |
python-aliyun-python-sdk-acms-open SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.0-150100.3.7.5 |
python-aliyun-python-sdk-actiontrail SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.0.3-150100.3.7.5 |
python-aliyun-python-sdk-adb SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.5-150100.3.7.5 |
python-aliyun-python-sdk-address-purification SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.0-150100.3.7.5 |
python-aliyun-python-sdk-aegis SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.6-150100.3.7.5 |
python-aliyun-python-sdk-afs SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.1-150100.3.7.5 |
python-aliyun-python-sdk-airec SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.0.0-150100.3.7.5 |
python-aliyun-python-sdk-alidns SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.6.20-150100.3.7.5 |
python-aliyun-python-sdk-aligreen-console SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.3-150100.3.7.5 |
python-aliyun-python-sdk-alimt SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 3.0.30-150100.3.7.5 |
python-aliyun-python-sdk-alinlp SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.16-150100.3.7.5 |
python-aliyun-python-sdk-aliyuncvc SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.10.2-150100.3.7.5 |
python-aliyun-python-sdk-amqp-open SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.1.1-150100.3.5.5 |
python-aliyun-python-sdk-appmallsservice SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.1.1-150100.3.7.5 |
python-aliyun-python-sdk-arms SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.5.22-150100.3.7.5 |
python-aliyun-python-sdk-arms4finance SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 2.0.2-150100.3.7.5 |
python-aliyun-python-sdk-baas SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.1-150100.3.7.5 |
python-aliyun-python-sdk-brinekingdom SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.0.1-150100.3.7.5 |
python-aliyun-python-sdk-bss SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 0.0.4-150100.3.7.5 |
python-aliyun-python-sdk-bssopenapi SUSE:Linux Enterprise Module for Public Cloud 15 SP1 | All versions | 1.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.
Other vulnerabilities in Fedoraproject Fedora
- CVE-2026-26007 cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
- CVE-2024-26130 cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
- CVE-2023-38325 cryptography mishandles SSH certificates
- CVE-2026-39892 cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
- CVE-2023-49083 cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
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.