Vulnerabilities / CVE-2020-36242

critical

CVE-2020-36242

python-cryptography: Large inputs for symmetric encryption can trigger integer overflow leading to buffer overflow

Published Modified CWE 190, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GHSA8.8CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, CBL-Mariner, Photon OS. Rated lower by GHSA (high), Red Hat (medium), Oracle (medium), Rocky Linux (medium).

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 packages and fixed versions

SourcePackageFixed in
CBL-Mariner 1.0python-cryptography0:3.3.2-1.cm1
Photon OS 1.0python-cryptography1.9-1.ph1
Photon OS 2.0python-cryptography2.3.1-2.ph2
Photon OS 3.0python-cryptography2.8-2.ph3
Photon OS 4.0python3-cryptography3.3.2-1.ph4
alpine 3.13py3-cryptography3.3.2-r0
alpine 3.16py3-cryptography3.2.2-r0
alpine 3.17py3-cryptography3.2.2-r0
alpine 3.18py3-cryptography3.2.2-r0
alpine 3.19py3-cryptography3.2.2-r0
alpine 3.20py3-cryptography3.2.2-r0
alpine 3.21py3-cryptography3.2.2-r0
Show all 32 entries from 27 sources
SourcePackageFixed in
CBL-Mariner 1.0python-cryptography0:3.3.2-1.cm1
Photon OS 1.0python-cryptography1.9-1.ph1
Photon OS 2.0python-cryptography2.3.1-2.ph2
Photon OS 3.0python-cryptography2.8-2.ph3
Photon OS 4.0python3-cryptography3.3.2-1.ph4
alpine 3.13py3-cryptography3.3.2-r0
alpine 3.16py3-cryptography3.2.2-r0
alpine 3.17py3-cryptography3.2.2-r0
alpine 3.18py3-cryptography3.2.2-r0
alpine 3.19py3-cryptography3.2.2-r0
alpine 3.20py3-cryptography3.2.2-r0
alpine 3.21py3-cryptography3.2.2-r0
alpine 3.22py3-cryptography3.2.2-r0
alpine 3.23py3-cryptography3.2.2-r0
alpine 3.24py3-cryptography3.2.2-r0
alpine edgepy3-cryptography3.2.2-r0
debian 10python-cryptographyno fix listed
debian 11python-cryptography3.3.2-1
debian 12python-cryptography3.3.2-1
debian 13python-cryptography3.3.2-1
debian 14python-cryptography3.3.2-1
echopython-cryptography3.3.2-1
Oracle Linux 8python3-cryptography3.2.1-4.el8
pip::GitHub Security Advisory pipcryptography3.3.2
Red Hatpython-cryptographyno fix listed
Red Hatpython2-cryptographyno fix listed
Red Hatpython38:3.8::python-cryptographyno fix listed
Red Hatpython38:3.8::python3-cryptographyno fix listed
Red Hatpython39:3.9::python-cryptographyno fix listed
Red Hatpython39:3.9::python3-cryptographyno fix listed
rocky 8python3-cryptography3.2.1-4.el8
root.io debian 12rootio-python-cryptography3.3.2-1

References

All 29 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.