cryptography
PyPI14 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.5✓ Fixed 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.5✓ Fixed 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.9✓ Fixed in 3.2.12021-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.1✓ Fixed 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 9.0✓ Fixed 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.8✓ Fixed 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.5✓ Fixed 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-49083MEDIUMCVSS 5.9EG 5.9✓ Fixed 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.5✓ Fixed 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.5✓ Fixed 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.3✓ Fixed 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.5✓ Fixed in 42.0.42024-02-21
vulnerable: 38.0.0 ... 42.0.3 (23 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-34073MEDIUMCVSS 5.3EG 5.3✓ Fixed 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.8✓ Fixed 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…
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.
Start Free Scan →