# cryptography (PyPI)

cryptography is a package which provides cryptographic recipes and primitives to Python developers.

- Latest: 51.0.0 (2026-12-02)
- Licence: Apache-2.0 OR BSD-3-Clause
- Downloads: 1384688995 last month
- Advisories on the latest version: 0

- CVE-2026-69247 : cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing Fixed in 50.0.0.
- CVE-2026-69249 : python-cryptography: Duplicate self-signed intermediates can cause exponential path-building Fixed in 49.0.0.
- CVE-2026-69248 : python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees Fixed in 49.0.0.
- CVE-2026-69247 HIGH: cryptography: PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle through distinguishable errors and timing Fixed in 50.0.0.
- CVE-2026-69249 HIGH: python-cryptography: Duplicate self-signed intermediates can cause exponential path-building Fixed in 49.0.0.
- CVE-2026-69248 MODERATE: python-cryptography verifier accepts wildcard DNS names allowing escape from permittedSubtrees Fixed in 49.0.0.
- CVE-2023-50782 : Python Cryptography package vulnerable to Bleichenbacher timing oracle attack Fixed in 42.0.0.
- CVE-2024-12797 : Vulnerable OpenSSL included in cryptography wheels Fixed in 44.0.1.
- CVE-2024-0727 : Null pointer dereference in PKCS12 parsing Fixed in 42.0.2.
- CVE-2023-0286 : Vulnerable OpenSSL included in cryptography wheels Fixed in 39.0.1.
- GHSA-537c-gmf6-5ccf HIGH: Vulnerable OpenSSL included in cryptography wheels Fixed in 48.0.1.
- CVE-2026-39892 MODERATE: Cryptography vulnerable to buffer overflow if non-contiguous buffers were passed to APIs Fixed in 46.0.7.
- CVE-2026-39892 :  Fixed in 46.0.7.
- CVE-2026-34073 :  Fixed in 46.0.6.
- CVE-2026-34073 LOW: cryptography has incomplete DNS name constraint enforcement on peer names Fixed in 46.0.6.
- CVE-2026-26007 HIGH: cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves Fixed in 46.0.5.
- CVE-2026-26007 :  Fixed in 46.0.5.
- CVE-2024-12797 LOW: Vulnerable OpenSSL included in cryptography wheels Fixed in 44.0.1.
- GHSA-h4gh-qq45-vh27 MODERATE: pyca/cryptography has a vulnerable OpenSSL included in cryptography wheels Fixed in 43.0.1.
- CVE-2024-26130 HIGH: cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash ov Fixed in 42.0.4.
- CVE-2024-26130 :  Fixed in 42.0.4.
- CVE-2023-50782 HIGH: Python Cryptography package vulnerable to Bleichenbacher timing oracle attack Fixed in 42.0.0.
- CVE-2024-0727 MODERATE: Null pointer dereference in PKCS12 parsing Fixed in 42.0.2.
- CVE-2023-49083 :  Fixed in 41.0.6.
- CVE-2023-49083 MODERATE: cryptography vulnerable to NULL-dereference when loading PKCS7 certificates Fixed in 41.0.6.
- GHSA-v8gr-m533-ghj9 LOW: Vulnerable OpenSSL included in cryptography wheels Fixed in 41.0.4.
- GHSA-jm77-qphf-c4w8 LOW: pyca/cryptography's wheels include vulnerable OpenSSL Fixed in 41.0.3.
- CVE-2023-38325 HIGH: cryptography mishandles SSH certificates Fixed in 41.0.2.
- CVE-2023-38325 :  Fixed in 41.0.2.
- GHSA-5cpq-8wj7-hf2v LOW: Vulnerable OpenSSL included in cryptography wheels Fixed in 41.0.0.
- CVE-2023-0286 HIGH: Vulnerable OpenSSL included in cryptography wheels Fixed in 39.0.1.
- CVE-2023-23931 MODERATE: Cipher.update_into can corrupt memory if passed an immutable python object as the outbuf Fixed in 39.0.1.
- CVE-2023-23931 :  Fixed in 39.0.1.
- GHSA-39hc-v87j-747x MODERATE: Vulnerable OpenSSL included in cryptography wheels Fixed in 38.0.3.
- CVE-2016-9243 HIGH: Improper input validation in cryptography Fixed in 1.5.3.
- CVE-2020-36242 HIGH: PyCA Cryptography symmetrically encrypting large values can lead to integer overflow Fixed in 3.3.2.
- CVE-2020-36242 :  Fixed in 3.3.2.
- CVE-2020-25659 :  Fixed in 3.2.1.
- CVE-2020-25659 HIGH: RSA decryption vulnerable to Bleichenbacher timing vulnerability Fixed in 3.2.
- CVE-2018-10903 HIGH: PyCA Cryptography vulnerable to GCM tag forgery Fixed in 2.3.

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
