CVE-2024-26130:
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
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.48987%
CWE
Published
2/21/2024
Updated
2/6/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
cryptography | pip | >= 38.0.0, < 42.0.4 | 42.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability manifests in serialize_key_and_certificates_to_pkcs12 because:
- The commit diff shows a NULL check was added to the p12 variable in this function
- The vulnerability description explicitly mentions pkcs12.serialize_key_and_certificates as the entry point
- The security advisory links to code changes in this specific function
- The test case added in test_pkcs12.py directly exercises this code path with mismatched key/cert
- The CWE-476 (NULL Pointer Dereference) matches the missing NULL check pattern shown in the patch