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

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.80%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-07T19:50:57.000Z
- Modified: 2026-06-17T03:15:11.793Z
- Also known as: GHSA-rhm9-p9w5-fwm7, PYSEC-2021-63
- Weaknesses: CWE-190, CWE-787
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cryptography (PyPI): from 3.1 before 3.3.2
- cryptography.io cryptography: before 3.3.2
- fedoraproject fedora: 33
- oracle communications_cloud_native_core_network_function_cloud_native_environment: 1.10.0

## Every score

- GitHub: CVSS:3.1 9.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`

## References

- <https://github.com/pyca/cryptography/issues/5615> (exploit, 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.html> (patch, 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/blob/master/CHANGELOG.rst> (release-notes, 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%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/> (web)

## Sources

- CVE List: [CVE-2020-36242](https://www.cve.org/CVERecord?id=CVE-2020-36242), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-rhm9-p9w5-fwm7](https://github.com/advisories/GHSA-rhm9-p9w5-fwm7), CC-BY-4.0, modified 2025-02-15
- NVD: [CVE-2020-36242](https://nvd.nist.gov/vuln/detail/CVE-2020-36242), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-63](https://osv.dev/vulnerability/PYSEC-2021-63), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-36242 · Whole record: https://cve.day/CVE-2020-36242.json · Rebuilt by cve.day 2026-11-25T22:57:57.286Z
