SecurityContext

CVE-2024-26130: cryptography - NULL Pointer Dereference

  • Cve: CVE-2024-26130
  • Name: cryptography - NULL Pointer Dereference
  • 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.
  • Impact: Attackers can cause a denial of service by crashing the Python process through a NULL pointer dereference.
  • Remediation: Update to version 42.0.4 or later where the issue is fixed.
  • Vulnerability type: null_pointer_dereference
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00831
  • Epss percentile: 0.58325
  • Assignee: [email protected]
  • Published at: 2024-02-21T17:15:09Z
  • Age in days: 1007
  • Modified at: 2026-06-17T07:17:09Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-26130
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-476NULL Pointer Dereference

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55Patch
https://github.com/pyca/cryptography/pull/10423Issue Tracking, Patch
https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
cryptography.io:cryptography>= 38.0.0, < 42.0.4nonvd/v1/products/cryptography.io/cryptography

Projects

RepositoryLink kindsIndexedUrl
pyca/cryptographycommit, fix, package, pull, security_advisoryyes/v1/repositories/pyca/cryptography

Index

  • Repositories: 421
  • Repositories high signal: 208
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts