CVE-2024-26130
February 21, 2024
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. Starting in version 38.0.0 and prior to version 42.0.4, if "pkcs12.serialize_key_and_certificates" is called with both a certificate whose public key did not match the provided private key and 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 in version 42.0.4, the first version in which a "ValueError" is properly raised.
Affected Packages
cryptography (PYTHON):
Affected version(s) >=38.0.0 <42.0.4Fix Suggestion:
Update to version 42.0.4cryptography (PYTHON):
Affected version(s) >=38.0.0 <42.0.4Fix Suggestion:
Update to version 42.0.4cryptography (PYTHON):
Affected version(s) >=38.0.0 <42.0.4Fix Suggestion:
Update to version 42.0.4cryptography (PYTHON):
Affected version(s) >=38.0.0 <42.0.4Fix Suggestion:
Update to version 42.0.4Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
NULL Pointer Dereference
EPSS
Base Score:
0.34