GHSA-rhm9-p9w5-fwm7

PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

At a glance

Published
Updated
CVE
CVE-2020-36242
Aliases
PYSEC-2021-63
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N

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.

Affected packages

PackageVersions
PyPI · cryptographyintroduced 3.1, fixed 3.3.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database