Skip to content

PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

Critical severity GitHub Reviewed Published Feb 7, 2021 in pyca/cryptography • Updated Sep 7, 2023

Package

pip cryptography (pip)

Affected versions

>= 3.1, < 3.3.2

Patched versions

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.

References

@alex alex published to pyca/cryptography Feb 7, 2021
Published by the National Vulnerability Database Feb 7, 2021
Reviewed Feb 10, 2021
Published to the GitHub Advisory Database Feb 10, 2021
Last updated Sep 7, 2023

Severity

Critical
9.1
/ 10

CVSS base metrics

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

CVE ID

CVE-2020-36242

GHSA ID

GHSA-rhm9-p9w5-fwm7

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.