Skip to main content
No exploitation reportedFix available

CVE-2024-26130

No exploitation reported by the sources we read.

  • Published2024-02-21
  • Fixed in42.04
  • WeaknessCWE-476

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-02-2117:15CVE publishedNVD

Versions per branch

CISA-ADP · NVD · OSV
Cryptography project cryptography
BranchAffectedFixed in
42.4≥ 38.0.0, < 42.0442.04
Cryptography.io cryptography
BranchAffectedFixed in
42.0≥ 38.0.0, < 42.0.442.0.4

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • pyca cryptography
    Affected
    • = >= 38.0.0, < 42.0.4no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-02-21

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • airflowWolfiall versions · fixed in 2.10.5-r44
  • airflowChainguardall versions · fixed in 2.10.5-r44
  • automation-controller-venv-towerRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:4.5.7-1.el9ap
  • automation-controller-venv-towerRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:4.5.7-1.el8ap
  • automation-hubRed Hat:ansible_automation_platform:2.4::el9all versions · fixed in 0:4.9.2-1.el9apand 2 other packages
  • automation-hubRed Hat:ansible_automation_platform:2.4::el8all versions · fixed in 0:4.9.2-1.el8apand 2 other packages
  • azWolfiall versions · fixed in 2.58.0-r0and 1 other package
  • azChainguardall versions · fixed in 2.58.0-r0and 1 other package

103 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-26130 Red Hat Product Security49 products fixed

    python-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

  • RHSA-2025:15608 Red Hat Product Security13 products fixed

    Red Hat Security Advisory: python3.12-cryptography security update

  • RHSA-2025:1335 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update

  • RHSA-2024:7987 Red Hat Product Security6 products fixed

    Red Hat Security Advisory: Satellite 6.15.4 Security Update

  • RHSA-2024:3781 Red Hat Product Security26 products fixed

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

Full record on NVD

Fix

  1. Update Cryptography project cryptography to 42.04
  2. Vendor fix Red Hat Product Security RHSA-2025:15608 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:1335 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions on how to apply this update, see: https://docs.redhat.com/en/documentation/red_hat_update_infrastructure/4/html/migrating_red_hat_update_infrastructure/assembl…
  4. Vendor fix Red Hat Product Security RHSA-2024:7987 · 10 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.15/html/updating_red_hat_satellite/index
  5. Vendor fix Red Hat Product Security RHSA-2024:3781 · 78 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 For the update to take effect, all applications using Jinja2 must be restarted.
  6. Workaround from the vendor Red Hat Product Security RHSA-2025:15608 · 13 productsMitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2024-08-14
  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-476known since 2026-10-23
  • NVDweakness (CWE)CWE-476read 2026-10-23
  • FIRST EPSSEPSS score1.7 %2026-11-25
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHigh2024-02-21

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2024-02-21
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-6vqw-3v5j-54x4

Frequently asked questions

What is CVE-2024-26130?

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.

Is CVE-2024-26130 actively exploited?

Active exploitation of CVE-2024-26130 has not been confirmed. Its EPSS score was 1.7% on 2026-11-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-26130?

CVE-2024-26130 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running cryptography? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record