CVE-2020-36242
CRITICAL 9.1CVSS 3.1PyCA Cryptography symmetrically encrypting large values can lead to integer overflow
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.
- Published
- 7 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190CWE-787
- Also known as
- GHSA-rhm9-p9w5-fwm7PYSEC-2021-63
- Sources
- NVDJSONOSV GHSA-rhm9-p9w5-fwm7JSONOSV PYSEC-2021-63JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cryptography.io | cryptographycpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:* |
< 3.3.2 | 3.3.2 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | oracle | communications_cloud_native_core_network_function_cloud_native_environmentcpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:* |
= 1.10.0 | |
| OSV | PyPI | cryptography | >= 3.1, < 3.3.2 | 3.3.2 |
References
- https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst · Release Notes, Third Party Advisory, WEB
- https://github.com/pyca/cryptography/compare/3.3.1...3.3.2 · Patch, Third Party Advisory, WEB
- https://github.com/pyca/cryptography/issues/5615 · Exploit, Patch, Third Party Advisory, WEB, REPORT
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/ · WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujul2022.html · Patch, Third Party Advisory, WEB
- https://github.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-36242 · ADVISORY
- https://github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae · WEB
- https://github.com/advisories/GHSA-rhm9-p9w5-fwm7 · ADVISORY
- https://github.com/pyca/cryptography · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yaml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 7 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Feb 2021)