Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. cryptography
  4. ›
  5. CVE-2020-36242

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

February 10, 2021 (updated September 13, 2024)

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.

References

  • github.com/advisories/GHSA-rhm9-p9w5-fwm7
  • github.com/pyca/cryptography
  • github.com/pyca/cryptography/blob/master/CHANGELOG.rst
  • github.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae
  • github.com/pyca/cryptography/compare/3.3.1...3.3.2
  • github.com/pyca/cryptography/issues/5615
  • github.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7
  • github.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yaml
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
  • nvd.nist.gov/vuln/detail/CVE-2020-36242
  • www.oracle.com/security-alerts/cpuapr2022.html
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2020-36242 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.1 before 3.3.2

Fixed versions

  • 3.3.2

Solution

Upgrade to version 3.3.2 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound
  • CWE-787: Out-of-bounds Write

Source file

pypi/cryptography/CVE-2020-36242.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.