cryptography
PyPI18 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting cryptographypage 1 of 1
- CVE-2016-9243HIGHCVSS 7.5EG 7.5fixed in 1.5.32017-03-27
vulnerable: 0.1 ... 1.5.2 (42 versions)
HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.
- CVE-2018-10903HIGHCVSS 7.5EG 7.5fixed in 2.32018-07-30
vulnerable: 1.9 ... 2.2.2 (13 versions)
A flaw was found in python-cryptography versions between >=1.9.0 and <2.3. The finalize_with_tag API did not enforce a minimum tag length. If a user did not validate the input length prior to passing it to finalize_with_tag an attacker cou…
- CVE-2020-25659MEDIUMCVSS 5.9EG 5.9fixed in 3.2 or 3.2.1, by version range2021-01-11
vulnerable: 0.1 ... 3.2 (80 versions)
python-cryptography 3.2 is vulnerable to Bleichenbacher timing attacks in the RSA decryption API, via timed processing of valid PKCS#1 v1.5 ciphertext.
- CVE-2020-36242CRITICALCVSS 9.1EG 9.1fixed in 3.3.22021-02-07
vulnerable: 3.1 ... 3.3.1 (6 versions)
In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer overflow, as demonstrated by the Fernet class.
- CVE-2023-0286HIGHCVSS 7.4EG 8.3fixed in 39.0.12023-02-08
vulnerable: 0.8.1 ... 39.0.0 (91 versions)
There is a type confusion vulnerability relating to X.400 address processing inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING but the public structure definition for GENERAL_NAME incorrectly specified the type of …
- CVE-2023-23931MEDIUMCVSS 4.8EG 4.8fixed in 39.0.12023-02-07
vulnerable: 1.8 ... 39.0.0 (61 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In affected versions `Cipher.update_into` would accept Python objects which implement the buffer protocol, but provide only immutable b…
- CVE-2023-38325HIGHCVSS 7.5EG 7.5fixed in 41.0.22023-07-14
vulnerable: 40.0.0, 40.0.1, 40.0.2, 41.0.0, 41.0.1
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
- CVE-2023-49083HIGHCVSS 7.5EG 7.5fixed in 41.0.62023-11-29
vulnerable: 3.1 ... 41.0.5 (42 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Calling `load_pem_pkcs7_certificates` or `load_der_pkcs7_certificates` could lead to a NULL-pointer dereference and segfault. Exploitat…
- CVE-2023-50782HIGHCVSS 7.5EG 7.5fixed in 42.0.02024-02-05
vulnerable: 0.1 ... 41.0.7 (121 versions)
A flaw was found in the python-cryptography package. This issue may allow a remote attacker to decrypt captured messages in TLS servers that use RSA key exchanges, which may lead to exposure of confidential or sensitive data.
- CVE-2024-0727MEDIUMCVSS 5.5EG 5.5fixed in 42.0.22024-01-26
vulnerable: 0.1 ... 42.0.1 (123 versions)
Issue summary: Processing a maliciously formatted PKCS12 file may lead OpenSSL to crash leading to a potential Denial of Service attack Impact summary: Applications loading files in the PKCS12 format from untrusted sources might terminate…
- CVE-2024-12797MEDIUMCVSS 6.3EG 6.3fixed in 44.0.12025-02-11
vulnerable: 42.0.0 ... 44.0.0 (13 versions)
Issue summary: Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a server may fail to notice that the server was not authenticated, because handshakes don't abort as expected when the SSL_VERIFY_PEER verification mode is set. I…
- CVE-2024-26130HIGHCVSS 7.5EG 7.5fixed in 42.0.42024-02-21
vulnerable: 38.0.0 ... 0.1 (63 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Starting in version 38.0.0 and prior to version 42.0.4, if `pkcs12.serialize_key_and_certificates` is called with both a certificate wh…
- CVE-2026-26007MEDIUMCVSS 6.5EG 6.5fixed in 46.0.52026-02-10
vulnerable: 0.1 ... 46.0.4 (150 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to 46.0.5, the public_key_from_numbers (or EllipticCurvePublicNumbers.public_key()), EllipticCurvePublicNumbers.public_key(), loa…
- CVE-2026-34073MEDIUMCVSS 5.3EG 5.3fixed in 46.0.62026-03-31
vulnerable: 0.1 ... 46.0.5 (151 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Prior to version 46.0.6, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" prese…
- CVE-2026-39892CRITICALCVSS 9.8EG 9.8fixed in 46.0.72026-04-08
vulnerable: 45.0.0 ... 46.0.6 (15 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 45.0.0 to before 46.0.7, if a non-contiguous buffer was passed to APIs which accepted Python buffers (e.g. Hash.update()), this co…
- CVE-2026-69247HIGHCVSS 8.2EG 8.2fixed in 50.0.02026-08-03
vulnerable: 44.0.0 ... 49.0.0 (24 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. From 44.0.0 until 50.0.0, pkcs7_decrypt_der, pkcs7_decrypt_pem, and pkcs7_decrypt_smime reported the outcome of decrypting a RecipientI…
- CVE-2026-69248MEDIUMCVSS 6.9EG 6.9fixed in 49.0.02026-08-03
vulnerable: 0.1 ... 48.0.1 (156 versions)
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 45.0.0 through 48.0.0, if an intermediate constrained CA permits the DNS name foo.example.com, and the leaf certificate has…
- CVE-2026-69249HIGHCVSS 8.7EG 8.7fixed in 49.0.02026-08-03
vulnerable: 0.1 ... 48.0.1 (156 versions)
python-cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. In versions 42.0.0 through 48.0.0, when resolving invalid certificate chains that include duplicate copies of self-signed certif…
Check whether cryptography is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for cryptography CVEs against the assets you own.
Book a Demo →