NULL Pointer Dereference in `pkcs12.serialize_key_and_certificates` Fixes Crash in Python Process
CVE-2024-26130
7.5HIGH
What is CVE-2024-26130?
The vulnerability affects the cryptography package, specifically in the function pkcs12.serialize_key_and_certificates. If used with a certificate whose public key does not match the associated private key, combined with a specified encryption algorithm where hmac_hash is set, there is a risk of invoking a null pointer dereference. This flaw can lead to crashes in the Python process. The issue has been addressed in version 42.0.4, which successfully raises a ValueError instead of causing the application to terminate unexpectedly.
Affected Version(s)
cryptography >= 38.0.0, < 42.0.4
