NULL Pointer Dereference in `pkcs12.serialize_key_and_certificates` Fixes Crash in Python Process
CVE-2024-26130

7.5HIGH

Key Information:

Vendor

Pyca

Vendor
CVE Published:
21 February 2024

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

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.