Python cryptography: Starting
Affects python-cryptographySource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 41.0.7-4ubuntu0.1 soon.
Data as of 24 Nov 2026, 19:25 UTC
- Patch
- Available – fixed in 41.0.7-4ubuntu0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 21 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu python-cryptography package to 41.0.7-4ubuntu0.1.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSpython-cryptographypkg:deb/ubuntu/python-cryptography?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-26130 (opens in a new tab)
- github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4 (opens in a new tab)
- github.com/pyca/cryptography/pull/10423 (opens in a new tab)
- ubuntu.com/security/notices/USN-6673-1 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-26130 (opens in a new tab)
- ubuntu.com/security/notices/USN-6673-3 (opens in a new tab)