Loading advisory.
Loading advisory.
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
If pkcs12.serialize_key_and_certificates is called with both:
Published 2024-02-21 16:28 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| cryptography | PyPI | >= 38.0.0, < 42.0.4 git commits in https://github.com/pyca/cryptography: < 97d231672763cdb5959a3b191e692a362f1b9e55 versions 38.0.0, 38.0.1, 38.0.2, 38.0.3, 38.0.4, 39.0.0, 39.0.1, 39.0.2, 40.0.0, 40.0.1, 40.0.2, 41.0.0, 41.0.1, 41.0.2, 41.0.3, 41.0.4, 41.0.5, 41.0.6, 41.0.7, 42.0.0 and 43 more | 42.0.4, 97d231672763cdb5959a3b191e692a362f1b9e55 | pip install --upgrade 'cryptography>=42.0.4'pip install --upgrade 'cryptography>=97d231672763cdb5959a3b191e692a362f1b9e55' |
If pkcs12.serialize_key_and_certificates is called with both:
A certificate whose public key did not match the provided private key
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, and now a ValueError is properly raised.
Patched in https://github.com/pyca/cryptography/pull/10423
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.008 on 2026-11-24 to 0.017 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.008 | first score | v2026.06.15 |
| 2026-11-26 | 0.017 | 0.008 | v2026.06.15 |