Vulnerability
CVE-2024-26130
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.
42 advisories report this vulnerability, across 11 ecosystems.
Advisories
-
ALSA-2025:15608
Important: python3.12-cryptography security update
- CGA-266w-66rw-qq6w
- CGA-2gpw-7gxw-5q2q
- CGA-2xx9-mj62-fcp9
- CGA-4622-8x7f-p986
- CGA-4mgp-7v94-77r9
- CGA-5pw5-8gm7-j4pj
- CGA-5vrj-4w5g-2v8h
- CGA-6crm-j9xh-263q
- CGA-6pw7-4w75-66cr
- CGA-6v5w-gx3q-c92v
- CGA-82vf-5839-wcv5
- CGA-9wjj-c2r8-q4g2
- CGA-f7v7-56q3-fp34
- CGA-f8g8-64vm-chr9
- CGA-fvfj-m226-r2jv
- CGA-g5fg-f8g3-6j42
- CGA-hjw5-p394-wxm4
- CGA-jf23-6x48-wcpm
- CGA-qwf8-c766-mp37
- CGA-v73g-hj64-x522
- CGA-vr9g-f73r-792c
- CGA-wvjp-fwqv-mx56
- CGA-x4mw-38jr-4q5v
- CGA-xpqx-5jmw-g35q
-
DEBIAN-CVE-2024-26130
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…
-
ELSA-2025-15608
ELSA-2025-15608: python3.12-cryptography security update (IMPORTANT)
-
ELSA-2025-20364
ELSA-2025-20364: python3.12-cryptography security update (IMPORTANT)
-
GHSA-6vqw-3v5j-54x4
cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
-
PYSEC-2024-225
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…
-
RHSA-2024:3781
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
-
RHSA-2024:7987
Red Hat Security Advisory: Satellite 6.15.4 Security Update
-
RHSA-2025:1335
Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update
-
RHSA-2025:15608
Red Hat Security Advisory: python3.12-cryptography security update
-
RLSA-2025:15608
Important: python3.12-cryptography security update
-
SUSE-SU-2024:0763-1
Security update for python-cryptography
-
SUSE-SU-2024:2138-1
Security update for python-cryptography
-
UBUNTU-CVE-2024-26130
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…
-
USN-6673-1
python-cryptography vulnerabilities
-
USN-6673-3
python-cryptography vulnerability
-
openSUSE-SU-2024:13710-1
python310-cryptography-42.0.4-1.1 on GA media
-
openSUSE-SU-2026:11468-1
python313-cryptography-50.0.0-1.1 on GA media