CVE-2024-26130
No exploitation reported by the sources we read.
- Published2024-02-21
- Fixed in42.04
- WeaknessCWE-476
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2024-02-2117:15CVE publishedNVD
Versions per branch
CISA-ADP · NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 42.4 | ≥ 38.0.0, < 42.04 | 42.04 | CISA-ADP |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 42.0 | ≥ 38.0.0, < 42.0.4 | 42.0.4 | NVD · OSV |
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 cryptographyAffected
- = >= 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
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
Red Hat Security Advisory: python3.12-cryptography security update
Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update
Red Hat Security Advisory: Satellite 6.15.4 Security Update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
Fix
- Update Cryptography project cryptography to 42.04
- 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
- 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…
- 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
- 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.
- 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
- github.comPatch
- github.comPatch
- github.comVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-26
- 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
- CGA-266w-66rw-qq6wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2gpw-7gxw-5q2qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2xx9-mj62-fcp9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4622-8x7f-p986same flawChainguard · CC-BY-NC-ND-4.0
- CGA-4mgp-7v94-77r9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-5pw5-8gm7-j4pjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5vrj-4w5g-2v8hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6crm-j9xh-263qsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6pw7-4w75-66crsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6v5w-gx3q-c92vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9wjj-c2r8-q4g2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f7v7-56q3-fp34same flawChainguard · CC-BY-NC-ND-4.0
- CGA-f8g8-64vm-chr9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fvfj-m226-r2jvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hjw5-p394-wxm4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-jf23-6x48-wcpmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-qwf8-c766-mp37same flawChainguard · CC-BY-NC-ND-4.0
- CGA-v73g-hj64-x522same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vr9g-f73r-792csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-wvjp-fwqv-mx56same flawChainguard · CC-BY-NC-ND-4.0
- CGA-x4mw-38jr-4q5vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-xpqx-5jmw-g35qsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2024-0031same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-6vqw-3v5j-54x4same flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2024-225same flawPyPA Advisory Database · CC-BY-4.0
- ALSA-2025:15608advisory covering several CVEsAlmaLinux · MIT
- MGASA-2025-0069advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2024:13710-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:11468-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2024:3781advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:7987advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:1335advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:15608advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2025:15608advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2024:0763-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2024:2138-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6673-1advisory covering several CVEsUbuntu
- USN-6673-3advisory covering several CVEsUbuntu
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?
Is CVE-2024-26130 actively exploited?
What is the CVSS score for CVE-2024-26130?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-6vqw-3v5j-54x4
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0