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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade python3.12-cryptography | Sep 12, 2025 | Sep 10, 2025 |
| Debian | — | Upgrade python-cryptography | Nov 11, 2024 | Feb 21, 2024 |
| Gentoo Linux | — | Upgrade dev-python/cryptography. | Jul 3, 2024 | Feb 21, 2024 |
| Oracle_linux | — | Upgrade python3.12-cryptography | Jun 9, 2025 | Feb 21, 2024 |
| Redhat_linux | — | Upgrade python3.12-cryptography-debugsourceUpgrade python3.12-cryptographyUpgrade python3.12-cryptography-debuginfo | Sep 11, 2025 | Feb 21, 2024 |
| Rocky_linux | — | Upgrade python3.12-cryptography-debugsourceUpgrade python3.12-cryptography-debuginfoUpgrade python3.12-cryptography | Feb 5, 2026 | Oct 10, 2025 |
| Suse | — | Upgrade python311-cryptographyUpgrade python313-cryptography | Mar 6, 2024 | Feb 21, 2024 |
| Ubuntu | — | Upgrade python3-cryptography | Mar 5, 2024 | Feb 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Feb 21, 2024 |
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