CVE-2024-26130

Source
https://cve.org/CVERecord?id=CVE-2024-26130
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26130.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26130
Aliases
Downstream
ALSA (1)
BELL (1)
CGA (24)
CLSA (2)
DEBIAN (1)
ECHO (1)
MGASA (1)
openSUSE (2)
RHSA (4)
RLSA (1)
ROOT (1)
SUSE (2)
UBUNTU (1)
Related
Published
2024-02-21T16:28:18Z
Modified
2026-11-11T10:31:09Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-476"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26130.json"
}
References

Affected packages

Git / github.com/pyca/cryptography

Affected ranges

Type
GIT
Repo
https://github.com/pyca/cryptography
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:cryptography.io:cryptography:*:*:*:*:*:python:*:*",
            "range": [
                {
                    "introduced": "38.0.0"
                },
                {
                    "fixed": "42.0.4"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "97d231672763cdb5959a3b191e692a362f1b9e55"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

38.*
38.0.0
39.*
39.0.0
40.*
40.0.0
41.*
41.0.0
42.*
42.0.0
42.0.1
42.0.2
42.0.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26130.json"