Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:deb/debian/python-cryptography@3.3.2-1?distro=trixie
purl pkg:deb/debian/python-cryptography@3.3.2-1?distro=trixie
Next non-vulnerable version 3.3.2-1+deb11u1
Latest non-vulnerable version 46.0.7-1
Risk 4.0
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-f44c-ygbw-bufn
Aliases:
CVE-2026-26007
GHSA-r6ph-v2qm-q3c2
cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves ## Vulnerability Summary The `public_key_from_numbers` (or `EllipticCurvePublicNumbers.public_key()`), `EllipticCurvePublicNumbers.public_key()`, `load_der_public_key()` and `load_pem_public_key()` functions do not verify that the point belongs to the expected prime-order subgroup of the curve. This missing validation allows an attacker to provide a public key point `P` from a small-order subgroup. This can lead to security issues in various situations, such as the most commonly used signature verification (ECDSA) and shared key negotiation (ECDH). When the victim computes the shared secret as `S = [victim_private_key]P` via ECDH, this leaks information about `victim_private_key mod (small_subgroup_order)`. For curves with cofactor > 1, this reveals the least significant bits of the private key. When these weak public keys are used in ECDSA , it's easy to forge signatures on the small subgroup. Only SECT curves are impacted by this. ## Credit This vulnerability was discovered by: - XlabAI Team of Tencent Xuanwu Lab - Atuin Automated Vulnerability Discovery Engine
43.0.0-3+deb13u1
Affected by 1 other vulnerability.
46.0.5-1
Affected by 0 other vulnerabilities.
46.0.5-2
Affected by 1 other vulnerability.
46.0.6-1
Affected by 1 other vulnerability.
46.0.7-1
Affected by 0 other vulnerabilities.
VCID-rgsr-9wpx-qqg6
Aliases:
CVE-2026-34073
GHSA-m959-cc7f-wv43
cryptography has incomplete DNS name constraint enforcement on peer names ## Summary In versions of cryptography prior to 46.0.5, DNS name constraints were only validated against SANs within child certificates, and not the "peer name" presented during each validation. Consequently, cryptography would allow a peer named `bar.example.com` to validate against a wildcard leaf certificate for `*.example.com`, even if the leaf's parent certificate (or upwards) contained an excluded subtree constraint for `bar.example.com`. This behavior resulted from a gap between RFC 5280 (which defines Name Constraint semantics) and RFC 9525 (which defines service identity semantics): put together, neither states definitively whether Name Constraints should be applied to peer names. To close this gap, cryptography now conservatively rejects any validation where the peer name would be rejected by a name constraint if it were a SAN instead. In practice, exploitation of this bypass requires an uncommon X.509 topology, one that the Web PKI avoids because it exhibits these kinds of problems. Consequently, we consider this a medium-to-low impact severity. See CVE-2025-61727 for a similar bypass in Go's `crypto/x509`. ## Remediation Users should upgrade to 46.0.6 or newer. ## Attribution Reporter: @1seal
46.0.6-1
Affected by 1 other vulnerability.
46.0.7-1
Affected by 0 other vulnerabilities.
VCID-x7vf-dyab-qbhq
Aliases:
CVE-2023-50782
GHSA-3ww4-gg4f-jr7f
Python Cryptography package vulnerable to Bleichenbacher timing oracle attack 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.
42.0.5-1
Affected by 0 other vulnerabilities.
43.0.0-3+deb13u1
Affected by 1 other vulnerability.
46.0.5-2
Affected by 1 other vulnerability.
46.0.6-1
Affected by 1 other vulnerability.
46.0.7-1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (9)
Vulnerability Summary Aliases
VCID-48jq-1u5d-tkan 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. Exploitation of this vulnerability poses a serious risk of Denial of Service (DoS) for any application attempting to deserialize a PKCS7 blob/certificate. The consequences extend to potential disruptions in system availability and stability. This vulnerability has been patched in version 41.0.6. CVE-2023-49083
GHSA-jfhm-5ghh-2f97
PYSEC-2023-254
VCID-4nw9-zhuy-y7cz 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 could craft an invalid payload with a shortened tag (e.g. 1 byte) such that they would have a 1 in 256 chance of passing the MAC check. GCM tag forgeries can cause key leakage. CVE-2018-10903
GHSA-fcf9-3qw3-gxmj
PYSEC-2018-52
VCID-av98-fhpr-tkhh The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options. CVE-2023-38325
GHSA-cf7p-gm2m-833m
PYSEC-2023-112
VCID-bjpd-6kh8-1bbs 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-2020-36242
GHSA-rhm9-p9w5-fwm7
PYSEC-2021-63
VCID-g772-pn9e-7ufv 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 whose public key did not match the provided private key and an `encryption_algorithm` with `hmac_hash` set (via `PrivateFormat.PKCS12.encryption_builder().hmac_hash(...)`, then a NULL pointer dereference would occur, crashing the Python process. This has been resolved in version 42.0.4, the first version in which a `ValueError` is properly raised. CVE-2024-26130
GHSA-6vqw-3v5j-54x4
PYSEC-2024-225
VCID-u4f5-k68d-wfd1 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 buffers. This would allow immutable objects (such as `bytes`) to be mutated, thus violating fundamental rules of Python and resulting in corrupted output. This now correctly raises an exception. This issue has been present since `update_into` was originally introduced in cryptography 1.8. CVE-2023-23931
GHSA-w7pp-m8wf-vj6r
PYSEC-2023-11
VCID-vmx8-tjg2-uuec 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-25659
GHSA-hggm-jpg3-v476
PYSEC-2021-62
VCID-za3q-wwzc-qbgv 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 could lead to buffer overflows. This vulnerability is fixed in 46.0.7. CVE-2026-39892
GHSA-p423-j2cm-9vmq
VCID-zvkn-n581-xqf3 HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size. CVE-2016-9243
GHSA-q3cj-2r34-2cwc
PYSEC-2017-8

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T10:05:01.468138+00:00 Debian Importer Fixing VCID-48jq-1u5d-tkan https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:43:01.483338+00:00 Debian Importer Fixing VCID-u4f5-k68d-wfd1 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:29:58.741010+00:00 Debian Importer Fixing VCID-g772-pn9e-7ufv https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:24:25.253439+00:00 Debian Importer Fixing VCID-zvkn-n581-xqf3 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:20:55.062408+00:00 Debian Importer Fixing VCID-4nw9-zhuy-y7cz https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:17:49.513172+00:00 Debian Importer Fixing VCID-av98-fhpr-tkhh https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:03:37.639850+00:00 Debian Importer Fixing VCID-vmx8-tjg2-uuec https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:02:43.813678+00:00 Debian Importer Fixing VCID-bjpd-6kh8-1bbs https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-12T18:15:29.355613+00:00 Debian Importer Fixing VCID-za3q-wwzc-qbgv https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T18:15:29.279035+00:00 Debian Importer Affected by VCID-rgsr-9wpx-qqg6 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T18:15:29.204627+00:00 Debian Importer Affected by VCID-f44c-ygbw-bufn https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T18:15:29.055907+00:00 Debian Importer Affected by VCID-x7vf-dyab-qbhq https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T18:15:28.989270+00:00 Debian Importer Fixing VCID-48jq-1u5d-tkan https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T18:15:28.700815+00:00 Debian Importer Fixing VCID-4nw9-zhuy-y7cz https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-12T17:48:01.345387+00:00 Debian Importer Fixing VCID-u4f5-k68d-wfd1 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:20:08.179736+00:00 Debian Importer Fixing VCID-g772-pn9e-7ufv https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:16:43.623093+00:00 Debian Importer Fixing VCID-zvkn-n581-xqf3 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:12:44.576977+00:00 Debian Importer Fixing VCID-av98-fhpr-tkhh https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:04:24.019082+00:00 Debian Importer Fixing VCID-vmx8-tjg2-uuec https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:03:51.504329+00:00 Debian Importer Fixing VCID-bjpd-6kh8-1bbs https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-09T17:37:11.392377+00:00 Debian Importer Fixing VCID-za3q-wwzc-qbgv https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.953657+00:00 Debian Importer Affected by VCID-rgsr-9wpx-qqg6 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.888796+00:00 Debian Importer Affected by VCID-f44c-ygbw-bufn https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.829395+00:00 Debian Importer Fixing VCID-g772-pn9e-7ufv https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.753676+00:00 Debian Importer Affected by VCID-x7vf-dyab-qbhq https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.694470+00:00 Debian Importer Fixing VCID-48jq-1u5d-tkan https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.649090+00:00 Debian Importer Fixing VCID-av98-fhpr-tkhh https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.587452+00:00 Debian Importer Fixing VCID-u4f5-k68d-wfd1 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.533276+00:00 Debian Importer Fixing VCID-bjpd-6kh8-1bbs https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.488716+00:00 Debian Importer Fixing VCID-vmx8-tjg2-uuec https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.429721+00:00 Debian Importer Fixing VCID-4nw9-zhuy-y7cz https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:50:38.371302+00:00 Debian Importer Fixing VCID-zvkn-n581-xqf3 https://security-tracker.debian.org/tracker/data/json 38.1.0