{"cve":"CVE-2024-26130","nvd":{"published":"2024-02-21T17:15:09.863","modified":"2026-06-17T07:17:09.793","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-476"],"references":["https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55","https://github.com/pyca/cryptography/pull/10423","https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4","https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55","https://github.com/pyca/cryptography/pull/10423"],"products":["cryptography.io:cryptography"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-26130","score":0.00831,"percentile":0.57591,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6vqw-3v5j-54x4","url":"https://osv.dev/vulnerability/GHSA-6vqw-3v5j-54x4","summary":"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","modified":"2026-09-10T03:50:09.815640629Z","packages":[{"ecosystem":"PyPI","name":"cryptography","purl":"pkg:pypi/cryptography","ranges":[">=38.0.0 <42.0.4"],"fixed":["42.0.4"]}]},{"id":"PYSEC-2024-225","url":"https://osv.dev/vulnerability/PYSEC-2024-225","summary":"","modified":"2026-06-10T17:14:19.430885581Z","packages":[{"ecosystem":"PyPI","name":"cryptography","purl":"pkg:pypi/cryptography","ranges":[">=38.0.0 <42.0.4"],"fixed":["42.0.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}