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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| cryptography (PyPI) | from 3.1 before 3.3.2 | GitHub Advisory Database, PyPA Advisory Database |
| cryptography.io cryptography | before 3.3.2 | NVD |
| fedoraproject fedora | 33 | NVD |
| oracle communications_cloud_native_core_network_function_cloud_native_environment | 1.10.0 | NVD |
All scores
| GitHub | 9.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 6.4medium CVSS:2.0 | AV: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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-36242 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rhm9-p9w5-fwm7 changed 2025-02-15 | CC-BY-4.0 |
| NVD | CVE-2020-36242 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-63 changed 2023-11-08 | CC-BY-4.0 |