cve.bz

CVE-2024-26130

7.5 highEPSS 0.8%

High (7.5) in cryptography.io cryptography. EPSS 0.8% chance of exploitation in the next 30 days. Fixed in cryptography 42.0.4.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% chance of exploitation in the next 30 days; higher than 57% of CVEs (scores of 2026-10-31)
CWE
CWE-476
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6vqw-3v5j-54x4PyPIcryptography>=38.0.0 <42.0.442.0.4
PYSEC-2024-225PyPIcryptography>=38.0.0 <42.0.442.0.4

References

Check your stackJSON