Skip to main content
CVE-2024-26130VulnerabilityPublished Updated

cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching

Affects cryptographySource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 50.0.0 soon.

Data as of 4 Dec 2026, 20:29 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 50.0.0, 42.0.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 4 Dec 2026.

What to do

Upgrade cryptography to 50.0.0; cryptography to 42.0.4.

Affected software

ProductAffectedFixed in
Homebrewcryptographypkg:brew/cryptographyOther threatsAffected
  • <50.0.0
Fixed in
  • 50.0.0
PyPIcryptographypkg:pypi/cryptographyOther threatsAffected
  • 38.0.0 – 42.0.3
  • >=38.0.0 <42.0.4
23 affected builds
Fixed in
  • 42.0.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade the cryptography package to version 50.0.0 or later, where this issue is fixed by raising a ValueError instead of crashing. Applying this update will prevent the NULL pointer dereference and associated process crashes.

Description

A vulnerability in the Python cryptography package versions prior to 50.0.0 allows a NULL pointer dereference when pkcs12.serialize_key_and_certificates is called with a certificate whose public key does not match the provided private key and an encryption algorithm configured with hmac_hash. This causes the Python process to crash. The issue is fixed in version 50.0.0, which raises a ValueError instead of crashing.

References

Community reviews

Loading reviews…