PyCA Cryptography symmetrically encrypting large values can lead to integer overflow
Published 10 Feb 2021 · Updated 15 Feb 2025
Is your project on an affected cryptography?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=3.1 <3.3.2
- Fixed in
- 3.3.2
pip install 'cryptography>=3.3.2'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.
Is GHSA-rhm9-p9w5-fwm7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected cryptography, and gives you the command that fixes it.
More advisories for cryptography
- MediumCVE-2026-69248python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees · 3 Aug 2026
- HighCVE-2026-69249python-cryptography: Duplicate self-signed intermediates can cause exponential path-building · 3 Aug 2026
- HighCVE-2026-69247cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing · 3 Aug 2026
- HighGHSA-537c-gmf6-5ccfVulnerable OpenSSL included in cryptography wheels · 15 Jun 2026
- MediumCVE-2026-39892Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs · 8 Apr 2026
- LowCVE-2026-34073cryptography has incomplete DNS name constraint enforcement on peer names · 27 Mar 2026
References
- Linkgithub.com/pyca/cryptography/security/advisories/GHSA-rhm9-p9w5-fwm7
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-36242
- Linkgithub.com/pyca/cryptography/issues/5615
- Linkgithub.com/pyca/cryptography/commit/82b6ce28389f0a317bc55ba2091a74b346db7cae
- Advisorygithub.com/advisories/GHSA-rhm9-p9w5-fwm7
- Packagegithub.com/pyca/cryptography
- Linkgithub.com/pyca/cryptography/blob/master/CHANGELOG.rst
- Linkgithub.com/pyca/cryptography/compare/3.3.1...3.3.2
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/cryptography/PYSEC-2021-63.yaml
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L7RGQLK4J5ZQFRLKCHVVG6BKZTUQMG7E
- Linkwww.oracle.com/security-alerts/cpuapr2022.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.