UBUNTU-CVE-2024-26130

Source
https://ubuntu.com/security/CVE-2024-26130
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-26130.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-26130
Upstream
Downstream
Related
Published
2024-02-21T17:15:00Z
Modified
2025-07-18T16:56:28Z
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
  • 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
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:24.04:LTS / python-cryptography

Package

Name
python-cryptography
Purl
pkg:deb/ubuntu/python-cryptography@41.0.7-4ubuntu0.1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
41.0.7-4ubuntu0.1

Affected versions

38.*

38.0.4-4
38.0.4-4ubuntu1

41.*

41.0.7-3
41.0.7-4build2
41.0.7-4build3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "41.0.7-4ubuntu0.1",
            "binary_name": "python-cryptography-doc"
        },
        {
            "binary_version": "41.0.7-4ubuntu0.1",
            "binary_name": "python3-cryptography"
        },
        {
            "binary_version": "41.0.7-4ubuntu0.1",
            "binary_name": "python3-cryptography-dbgsym"
        }
    ],
    "availability": "No subscription required"
}