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 Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | alma-upgrade-python3.12-cryptography | Sep 12, 2025 | Sep 10, 2025 | |
| Debian | debian-upgrade-python-cryptography | Nov 11, 2024 | Feb 21, 2024 | |
| Gentoo Linux | gentoo-linux-upgrade-dev-python-cryptography | Jul 3, 2024 | Feb 21, 2024 | |
| Oracle_linux | — | oracle-linux-upgrade-python3-12-cryptography | Jun 9, 2025 | Feb 21, 2024 |
| Redhat_linux | redhat-upgrade-python3-12-cryptographyredhat-upgrade-python3-12-cryptography-debuginforedhat-upgrade-python3-12-cryptography-debugsource | Sep 11, 2025 | Feb 21, 2024 | |
| Rocky_linux | rocky-upgrade-python3.12-cryptographyrocky-upgrade-python3.12-cryptography-debuginforocky-upgrade-python3.12-cryptography-debugsource | Feb 5, 2026 | Oct 10, 2025 | |
| Suse | — | suse-upgrade-python311-cryptographysuse-upgrade-python313-cryptography | Mar 6, 2024 | Feb 21, 2024 |
| Ubuntu | ubuntu-upgrade-python3-cryptography | Mar 5, 2024 | Feb 21, 2024 | |
| Vmware Photon_os | vmware-photon_os_update_tdnf | Jan 20, 2025 | Feb 21, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub