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
| Id | Name |
|---|---|
| CWE-476 | NULL Pointer Dereference |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| cryptography.io:cryptography | >= 38.0.0, < 42.0.4 | no | nvd | /v1/products/cryptography.io/cryptography |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pyca/cryptography | commit, fix, package, pull, security_advisory | yes | /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