
CVE catalog
CVE-2024-26130
python-cryptography vulnerability
- Severity
- High · CVSS 7.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-cryptography | sid | 49.0.0-2 | fixed |
| Debian | python-cryptography | forky | 49.0.0-2 | fixed |
| Debian | python-cryptography | trixie | 43.0.0-3+deb13u1 | fixed |
| Debian | python-cryptography | bookworm | 38.0.4-3+deb12u1 | fixed |
| Debian | python-cryptography | bookworm-security | 38.0.4-3~deb12u1 | vulnerable |
| Ubuntu | python-cryptography | noble | 41.0.7-4ubuntu0.1 | fixed |
| Ubuntu | python-cryptography-doc | noble | 41.0.7-4ubuntu0.1 | fixed |
| Ubuntu | python3-cryptography | noble | 41.0.7-4ubuntu0.1 | fixed |
| PyPI | cryptography | Not reported | 42.0.4 | fixed |
| PyPI | cryptography | Not reported | 42.0.4 | fixed |
| PyPI | cryptography | Not reported | 97d231672763cdb5959a3b191e692a362f1b9e55 | fixed |
| Ubuntu | python-cryptography | 24.04 | 38.0.4-4 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 38.0.4-4ubuntu1 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-3 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4build2 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4build3 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4ubuntu0.1 | fixed |
| Ubuntu | python-cryptography | 24.04 | 38.0.4-4 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 38.0.4-4ubuntu1 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-3 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4build2 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4build3 | vulnerable |
| Ubuntu | python-cryptography | 24.04 | 41.0.7-4ubuntu0.1 | fixed |
| Suse | python-cryptography | linux enterprise module for python 3 15 sp6 | 41.0.3-150600.23.3.1 | fixed |
| Opensuse | python-cryptography | leap 15.6 | 41.0.3-150600.23.3.1 | fixed |
| Suse | python-cryptography | linux enterprise module for python 3 15 sp5 | 41.0.3-150400.16.15.1 | fixed |
| Opensuse | python-cryptography | leap 15.5 | 41.0.3-150400.16.15.1 | fixed |
| Opensuse | python-cryptography | tumbleweed | 42.0.4-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-cryptography | source | sid | 42.0.5-1 | not yet assigned | Not reported | [1064778] |
| Debian | python-cryptography | source | forky | 42.0.5-1 | not yet assigned | Not reported | [1064778] |
| Debian | python-cryptography | source | trixie | 42.0.5-1 | not yet assigned | Not reported | [1064778] |
| Debian | python-cryptography | source | bookworm | 38.0.4-3+deb12u1 | not yet assigned | Not reported | [1064778] |
| Ubuntu | python-cryptography | deb | noble | 41.0.7-4ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | python-cryptography-doc | deb | noble | 41.0.7-4ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | python3-cryptography | deb | noble | 41.0.7-4ubuntu0.1 | Not reported | Not reported | Not reported |
| PyPI | cryptography | PyPI | Not reported | 42.0.4 | Not reported | GHSA-6VQW-3V5J-54X4 | Not reported |
| PyPI | cryptography | PyPI | Not reported | 42.0.4 | Not reported | Not reported | Not reported |
| PyPI | cryptography | PyPI | Not reported | 97d231672763cdb5959a3b191e692a362f1b9e55 | Not reported | Not reported | Not reported |
| Ubuntu | python-cryptography | deb | 24.04 | 41.0.7-4ubuntu0.1 | Not reported | USN-6673-3 | Not reported |
| Ubuntu | python-cryptography | deb | 24.04 | 41.0.7-4ubuntu0.1 | Not reported | UBUNTU-CVE-2024-26130 | Not reported |
| Suse | python-cryptography | rpm | linux enterprise module for python 3 15 sp6 | 41.0.3-150600.23.3.1 | Not reported | SUSE-SU-2024:2138-1 | Not reported |
| Opensuse | python-cryptography | rpm | leap 15.6 | 41.0.3-150600.23.3.1 | Not reported | SUSE-SU-2024:2138-1 | Not reported |
| Suse | python-cryptography | rpm | linux enterprise module for python 3 15 sp5 | 41.0.3-150400.16.15.1 | Not reported | SUSE-SU-2024:0763-1 | Not reported |
| Opensuse | python-cryptography | rpm | leap 15.5 | 41.0.3-150400.16.15.1 | Not reported | SUSE-SU-2024:0763-1 | Not reported |
| Opensuse | python-cryptography | rpm | tumbleweed | 42.0.4-1.1 | Not reported | OPENSUSE-SU-2024:13710-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11468-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-26130]
- [https://osv.dev/vulnerability/GHSA-6vqw-3v5j-54x4]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0763-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:2138-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-26130]
- [https://osv.dev/vulnerability/USN-6673-3]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13710-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-26130]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-26130.json]
- [https://ubuntu.com/security/notices/USN-6673-3]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1328.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]