High severity · published Feb 21, 2024
CVE-2024-26130
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers
7.5
CVSS
0.8%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 57% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CR
Cryptography · Cryptography.io
38.0.0 before 42.0.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-26130
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-26130
Patch
https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
Issue Tracking
https://github.com/pyca/cryptography/pull/10423
Vendor Advisory
https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4
More from Cryptography
9.8
CVE-2026-39892
cryptography has a buffer overflow if non-contiguous buffers were passed to APIs
9.1
CVE-2020-36242
In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could result in an integer overflow and buffer…
7.5
CVE-2023-50782
A flaw was found in the python-cryptography package
7.5
CVE-2023-49083
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers
7.5
CVE-2023-38325
The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options
