CVE catalog

CVE-2024-26130

python-cryptography vulnerability

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.83% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-cryptographysid49.0.0-2fixed
Debianpython-cryptographyforky49.0.0-2fixed
Debianpython-cryptographytrixie43.0.0-3+deb13u1fixed
Debianpython-cryptographybookworm38.0.4-3+deb12u1fixed
Debianpython-cryptographybookworm-security38.0.4-3~deb12u1vulnerable
Ubuntupython-cryptographynoble41.0.7-4ubuntu0.1fixed
Ubuntupython-cryptography-docnoble41.0.7-4ubuntu0.1fixed
Ubuntupython3-cryptographynoble41.0.7-4ubuntu0.1fixed
PyPIcryptographyNot reported42.0.4fixed
PyPIcryptographyNot reported42.0.4fixed
PyPIcryptographyNot reported97d231672763cdb5959a3b191e692a362f1b9e55fixed
Ubuntupython-cryptography24.0438.0.4-4vulnerable
Ubuntupython-cryptography24.0438.0.4-4ubuntu1vulnerable
Ubuntupython-cryptography24.0441.0.7-3vulnerable
Ubuntupython-cryptography24.0441.0.7-4build2vulnerable
Ubuntupython-cryptography24.0441.0.7-4build3vulnerable
Ubuntupython-cryptography24.0441.0.7-4ubuntu0.1fixed
Ubuntupython-cryptography24.0438.0.4-4vulnerable
Ubuntupython-cryptography24.0438.0.4-4ubuntu1vulnerable
Ubuntupython-cryptography24.0441.0.7-3vulnerable
Ubuntupython-cryptography24.0441.0.7-4build2vulnerable
Ubuntupython-cryptography24.0441.0.7-4build3vulnerable
Ubuntupython-cryptography24.0441.0.7-4ubuntu0.1fixed
Susepython-cryptographylinux enterprise module for python 3 15 sp641.0.3-150600.23.3.1fixed
Opensusepython-cryptographyleap 15.641.0.3-150600.23.3.1fixed
Susepython-cryptographylinux enterprise module for python 3 15 sp541.0.3-150400.16.15.1fixed
Opensusepython-cryptographyleap 15.541.0.3-150400.16.15.1fixed
Opensusepython-cryptographytumbleweed42.0.4-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-cryptographysourcesid42.0.5-1not yet assignedNot reported[1064778]
Debianpython-cryptographysourceforky42.0.5-1not yet assignedNot reported[1064778]
Debianpython-cryptographysourcetrixie42.0.5-1not yet assignedNot reported[1064778]
Debianpython-cryptographysourcebookworm38.0.4-3+deb12u1not yet assignedNot reported[1064778]
Ubuntupython-cryptographydebnoble41.0.7-4ubuntu0.1Not reportedNot reportedNot reported
Ubuntupython-cryptography-docdebnoble41.0.7-4ubuntu0.1Not reportedNot reportedNot reported
Ubuntupython3-cryptographydebnoble41.0.7-4ubuntu0.1Not reportedNot reportedNot reported
PyPIcryptographyPyPINot reported42.0.4Not reportedGHSA-6VQW-3V5J-54X4Not reported
PyPIcryptographyPyPINot reported42.0.4Not reportedNot reportedNot reported
PyPIcryptographyPyPINot reported97d231672763cdb5959a3b191e692a362f1b9e55Not reportedNot reportedNot reported
Ubuntupython-cryptographydeb24.0441.0.7-4ubuntu0.1Not reportedUSN-6673-3Not reported
Ubuntupython-cryptographydeb24.0441.0.7-4ubuntu0.1Not reportedUBUNTU-CVE-2024-26130Not reported
Susepython-cryptographyrpmlinux enterprise module for python 3 15 sp641.0.3-150600.23.3.1Not reportedSUSE-SU-2024:2138-1Not reported
Opensusepython-cryptographyrpmleap 15.641.0.3-150600.23.3.1Not reportedSUSE-SU-2024:2138-1Not reported
Susepython-cryptographyrpmlinux enterprise module for python 3 15 sp541.0.3-150400.16.15.1Not reportedSUSE-SU-2024:0763-1Not reported
Opensusepython-cryptographyrpmleap 15.541.0.3-150400.16.15.1Not reportedSUSE-SU-2024:0763-1Not reported
Opensusepython-cryptographyrpmtumbleweed42.0.4-1.1Not reportedOPENSUSE-SU-2024:13710-1Not reported

[Debian bug #1064778]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References