Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS02dnF3LTN2NWotNTR4NM4AA5bN
cryptography NULL pointer dereference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
If pkcs12.serialize_key_and_certificates
is called with both:
- A certificate whose public key did not match the provided private key
- An
encryption_algorithm
withhmac_hash
set (viaPrivateFormat.PKCS12.encryption_builder().hmac_hash(...)
Then a NULL pointer dereference would occur, crashing the Python process.
This has been resolved, and now a ValueError
is properly raised.
Patched in https://github.com/pyca/cryptography/pull/10423
Permalink: https://github.com/advisories/GHSA-6vqw-3v5j-54x4JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02dnF3LTN2NWotNTR4NM4AA5bN
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 2 months ago
Updated: 2 months ago
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
Identifiers: GHSA-6vqw-3v5j-54x4, CVE-2024-26130
References:
- https://github.com/pyca/cryptography/security/advisories/GHSA-6vqw-3v5j-54x4
- https://github.com/pyca/cryptography/pull/10423
- https://github.com/pyca/cryptography/commit/97d231672763cdb5959a3b191e692a362f1b9e55
- https://nvd.nist.gov/vuln/detail/CVE-2024-26130
- https://github.com/advisories/GHSA-6vqw-3v5j-54x4
Blast Radius: 38.4
Affected Packages
pypi:cryptography
Dependent packages: 2,599Dependent repositories: 131,580
Downloads: 248,655,832 last month
Affected Version Ranges: >= 38.0.0, < 42.0.4
Fixed in: 42.0.4
All affected versions: 38.0.0, 38.0.1, 38.0.2, 38.0.3, 38.0.4, 39.0.0, 39.0.1, 39.0.2, 40.0.0, 40.0.1, 40.0.2, 41.0.0, 41.0.1, 41.0.2, 41.0.3, 41.0.4, 41.0.5, 41.0.6, 41.0.7, 42.0.0, 42.0.1, 42.0.2, 42.0.3
All unaffected versions: 0.2.1, 0.2.2, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.6.1, 0.7.1, 0.7.2, 0.8.1, 0.8.2, 0.9.1, 0.9.2, 0.9.3, 1.0.1, 1.0.2, 1.1.1, 1.1.2, 1.2.1, 1.2.2, 1.2.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.5.1, 1.5.2, 1.5.3, 1.7.1, 1.7.2, 1.8.1, 1.8.2, 2.0.1, 2.0.2, 2.0.3, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.2.1, 2.2.2, 2.3.1, 2.4.1, 2.4.2, 2.6.1, 2.9.1, 2.9.2, 3.1.1, 3.2.1, 3.3.1, 3.3.2, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 35.0.0, 36.0.0, 36.0.1, 36.0.2, 37.0.0, 37.0.1, 37.0.2, 37.0.3, 37.0.4, 42.0.4, 42.0.5