GHSA-6vqw-3v5j-54x4 · Severity: high · Ecosystem: pip — 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
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.
Conclusion & alert: CVE-2024-26130 is rated Moderate Risk (48.8/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.83%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.47% | 0.83% | +0.36% |
| 2 | 2026-06-09 | 0.43% | 0.47% | +0.05% |
| 3 | 2026-04-10 | — | 0.43% | — |
Full EPSS history (23 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-6vqw-3v5j-54x4 · Severity: high · Ecosystem: pip — 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
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2024-26130: 1 source package rows (py3-cryptography); 6 state rows across 3 repos (3.22-community, edge-community, edge-main); fixed 0, open 6. | https://security.alpinelinux.org/vuln/CVE-2024-26130 |
debian
|
unimportant | CVE-2024-26130 unimportant priority: Debian including 1 source packages (python-cryptography), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2024-26130 |
gentoo
|
normal | CVE-2024-26130: 1 GLSA(s) (202407-06), 1 atom(s) (dev-python/cryptography); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-26130 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2024-26130 |
suse
|
medium | — | https://www.suse.com/security/cve/CVE-2024-26130/ |
ubuntu
|
medium | CVE-2024-26130 medium priority: Ubuntu including 1 source packages (python-cryptography), 8 status rows across 8 suites (bionic, focal, jammy, mantic, noble, trusty, upstream, xenial): not-affected 4, released 2, DNE 1, needs-triage 1. | https://ubuntu.com/security/CVE-2024-26130 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| cryptography.io | cryptography | >= 38.0.0, < 42.0.4 | cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55 | Patch |
| https://github.com/pyca/cryptography/pull/10423 | Issue Tracking Patch |
| https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4 | Vendor Advisory |