CVE-2020-36242
JSON

9.1critical

PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
6.80% (higher than 94% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-rhm9-p9w5-fwm7PYSEC-2021-63

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
cryptography (PyPI)from 3.1 before 3.3.2GitHub Advisory Database, PyPA Advisory Database
cryptography.io cryptographybefore 3.3.2NVD
fedoraproject fedora33NVD
oracle communications_cloud_native_core_network_function_cloud_native_environment1.10.0NVD

All scores

GitHub9.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. When certain sequences of update() calls with large values (multiple GBs) for symetric encryption or decryption occur, it's possible for an integer overflow to happen, leading to mishandling of buffers. This is patched in version 3.3.2 and newer.

NVD (es)

En el paquete de criptografía versiones anteriores a 3.3.2 para Python, determinadas secuencias de llamadas de actualización para cifrar simétricamente valores de varios GB podrían resultar en un desbordamiento de enteros y un desbordamiento del búfer, como es demostrado por la clase Fernet

References

https://github.com/pyca/cryptography/issues/5615exploit, patch, report, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/vendor-advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlpatch, third-party-advisory, web
https://github.com/pyca/cryptography/compare/3.3.1...3.3.2patch, third-party-advisory, web
https://github.com/pyca/cryptography/blob/master/CHANGELOG.rstrelease-notes, third-party-advisory, web
https://www.oracle.com/security-alerts/cpujul2022.htmlpatch, third-party-advisory, web
https://github.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7web
https://nvd.nist.gov/vuln/detail/CVE-2020-36242advisory
https://github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7caeweb
https://github.com/advisories/GHSA-rhm9-p9w5-fwm7advisory
https://github.com/pyca/cryptographypackage
https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yamlweb

Sources

SourceRecordLicence
CVE ListCVE-2020-36242 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-rhm9-p9w5-fwm7 changed 2025-02-15CC-BY-4.0
NVDCVE-2020-36242 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-63 changed 2023-11-08CC-BY-4.0