GitHub Advisoryadvisory · PyPI

GHSA-rhm9-p9w5-fwm7 PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

HIGH Published 2021-02-10 Modified 2024-09-13 Official page ↗
Aliases
CVE-2020-36242
Ecosystem
PyPI
Packages
cryptography
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-190, CWE-787
Reviewed
2021-02-10

Affected packages

• PyPI cryptography: >= 3.1, < 3.3.2 → fixed in 3.3.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2020-36242 In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could… vulnerability

Weakness · CWE (2)

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

References