Advisory

GHSA-rhm9-p9w5-fwm7

Also known as: CVE-2020-36242, PYSEC-2021-63

Summary

PyCA Cryptography symmetrically encrypting large values can lead to integer overflow

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-02-10 01:32 UTC
Modified
2025-02-15 05:29 UTC

Affected packages and fixes

cryptography

PyPI · All systems

Affected

  • introduced 3.1, fixed 3.3.2 (ecosystem)

Fixed versions

3.3.2

Fix

  • Fixed version 3.3.2
    pip install --upgrade cryptography==3.3.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences