CVE-2024-26130

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub_MCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 49%
VendorProductVersion
cryptography.iocryptography
38.0.0 ≤
𝑥
< 42.0.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-cryptography
bullseye
3.3.2-1
not-affected
buster
not-affected
bullseye (security)
3.3.2-1+deb11u1
fixed
bookworm
38.0.4-3+deb12u1
fixed
bookworm (security)
vulnerable
sid
43.0.0-3
fixed
trixie
43.0.0-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-cryptography
noble
Fixed 41.0.7-4ubuntu0.1
released
mantic
Fixed 38.0.4-4ubuntu0.23.10.2
released
jammy
not-affected
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne