cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching
Affects cryptographySource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 50.0.0 soon.
Data as of 4 Dec 2026, 20:29 UTC
- Patch
- Available – fixed in 50.0.0, 42.0.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade cryptography to 50.0.0; cryptography to 42.0.4.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewcryptographypkg:brew/cryptographyOther threats | Affected
| Fixed in
|
PyPIcryptographypkg:pypi/cryptographyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade the cryptography package to version 50.0.0 or later, where this issue is fixed by raising a ValueError instead of crashing. Applying this update will prevent the NULL pointer dereference and associated process crashes.
Description
A vulnerability in the Python cryptography package versions prior to 50.0.0 allows a NULL pointer dereference when pkcs12.serialize_key_and_certificates is called with a certificate whose public key does not match the provided private key and an encryption algorithm configured with hmac_hash. This causes the Python process to crash. The issue is fixed in version 50.0.0, which raises a ValueError instead of crashing.
References
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26130.json (opens in a new tab)
- github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-26130 (opens in a new tab)
- github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55 (opens in a new tab)
- github.com/pyca/cryptography/pull/10423 (opens in a new tab)