CVE-2020-36242
python-cryptography: Large inputs for symmetric encryption can trigger integer overflow leading to buffer overflow
Overview
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.
Source: OX vulnerability database
Severity
9.1 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness: CWE-190, CWE-787
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | cryptography | >=3.1, <3.3.2 | 3.3.2 |
Open a package to see all its vulnerabilities.
Operating systems · 215 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-cryptography | 3.2.1-4.el8 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | python3-cryptography | 3.3.2-1.ph4 |
Red Hat 4 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | python-cryptography +1 | eol | — |
| 7 | python-cryptography +1 | wont fix | — |
| 7 | rh-python38-python-urllib3 | 0:1.25.7-7.el7 | RHSA-2021:3254 |
| 7 | rh-python38-python-pip +1 | 0:19.3.1-2.el7 | RHSA-2021:3254 |
| 7 | rh-python38-python-jinja2 | 0:2.10.3-6.el7 | RHSA-2021:3254 |
| 7 | rh-python38-python-babel | 0:2.7.0-12.el7 | RHSA-2021:3254 |
8 more rows
SUSE Linux Enterprise 3 releases · 175 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | python-cryptography +1 | 2.1.4-7.34.1 | SUSE-SU-2021:0675-1 |
| 15.4 | python3-aliyun-python-sdk-hbr +2 | 0.0.2-150100.3.7.5 | SUSE-SU-2023:1838-1 |
| 15.4 | python3-aliyun-python-sdk-oms +2 | 0.0.3-150100.3.7.4 | SUSE-SU-2023:1838-1 |
| 15.4 | python3-aliyun-python-sdk-eas | 0.0.3-150100.3.7.5 | SUSE-SU-2023:1838-1 |
| 15.4 | python3-aliyun-python-sdk-ocs | 0.0.4-150100.3.7.4 | SUSE-SU-2023:1838-1 |
| 15.4 | python3-aliyun-python-sdk-bss | 0.0.4-150100.3.7.5 | SUSE-SU-2023:1838-1 |
176 more rows
SUSE Linux Enterprise Micro 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | python3-cryptography | 3.3.2-150200.16.1 | SUSE-SU-2023:0604-1 |
| 5.2 | python3-cryptography | 3.3.2-150200.16.1 | SUSE-SU-2023:0604-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | py3-cryptography | 3.2.2-r0 |
| 3.23 | py3-cryptography | 3.2.2-r0 |
| 3.24 | py3-cryptography | 3.2.2-r0 |
| edge | py3-cryptography | 3.2.2-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | python-cryptography | affected |
| 11 | python-cryptography | 3.3.2-1 |
| 12 | python-cryptography | 3.3.2-1 |
| 13 | python-cryptography | 3.3.2-1 |
| 14 | python-cryptography | 3.3.2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| python-cryptography | 3.3.2-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | python36-cryptography +2 | 3.3.2-2.4 | openSUSE-SU-2024:11223-1 |
| Tumbleweed | python310-cryptography +2 | 42.0.5-1.1 | openSUSE-SU-2024:13819-1 |
| Tumbleweed | python313-cryptography +1 | 50.0.0-1.1 | openSUSE-SU-2026:11468-1 |
rocky 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 8 | python3-cryptography | 3.2.1-4.el8 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-python-cryptography | 3.3.2-1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:1608
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-36242
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1778939
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1873581
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1889988
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1891947
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1907429
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1926226
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cryptography.io https://cryptography.io/en/latest/changelog.html#v3-3-2
Show all 30 references
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-25659
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36242
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:1608
- github.com https://github.com/advisories/GHSA-rhm9-p9w5-fwm7
- github.com https://github.com/pyca/cryptography
- github.com https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst
- github.com https://github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae
- github.com https://github.com/pyca/cryptography/compare/3.3.1...3.3.2
- github.com https://github.com/pyca/cryptography/issues/5615
- github.com https://github.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yaml
- linux.oracle.com https://linux.oracle.com/cve/CVE-2020-36242.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-1608.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-36242
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2020-36242
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujul2022.html
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.