Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2024-26130: cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash…

HighCVSS 7.5 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 30/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.83% (FIRST EPSS); higher than 58% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: python3.12-cryptography (AlmaLinux:9) 41.0.7-2.el9_6.1; python-cryptography (Debian:12) 38.0.4-3+deb12u1; python-cryptography (Debian:13) 42.0.5-1.

Low priority for now. Upgrade to python3.12-cryptography (AlmaLinux:9) 41.0.7-2.el9_6.1; python-cryptography (Debian:12) 38.0.4-3+deb12u1; python-cryptography (Debian:13) 42.0.5-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Feb 21, 2024
Updated
Jun 17, 2026
EPSS
0.8% · 58th percentile

Report tools

JSON

Action score

30

Monitor

Low priority for now.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.8%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
7.5
CNA · GitHub_M
7.5
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-26130

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
cryptography.iocryptography

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • pyca cryptography

    • >= 38.0.0, < 42.0.4affected

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • cryptography.io cryptography38.0.0 and later · before 42.0.4

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:9python3.12-cryptographybefore 41.0.7-2.el9_6.141.0.7-2.el9_6.1
Debian:12python-cryptographybefore 38.0.4-3+deb12u138.0.4-3+deb12u1
Debian:13python-cryptographybefore 42.0.5-142.0.5-1
openSUSE:Leap 15.5python-cryptographybefore 41.0.3-150400.16.15.141.0.3-150400.16.15.1
openSUSE:Leap 15.6python-cryptographybefore 41.0.3-150600.23.3.141.0.3-150600.23.3.1
openSUSE:Tumbleweedpython-cryptographybefore 50.0.0-1.150.0.0-1.1
openSUSE:Tumbleweedpython-cryptographybefore 42.0.4-1.142.0.4-1.1
PyPIcryptographyfrom 38.0.0 · before 42.0.442.0.4
Red Hat:ansible_automation_platform_developer:2.4::el8python39-blackbefore 0:22.8.0-2.el8ap0:22.8.0-2.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-cryptographybefore 0:42.0.5-1.el8ap0:42.0.5-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-cryptography-debuginfobefore 0:42.0.5-1.el8ap0:42.0.5-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-idnabefore 0:3.7-1.el8ap0:3.7-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-jinja2before 0:3.1.4-1.el8ap0:3.1.4-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-requestsbefore 0:2.32.2-1.el8ap0:2.32.2-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-blackbefore 0:22.8.0-2.el8ap0:22.8.0-2.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-cryptographybefore 0:42.0.5-1.el8ap0:42.0.5-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-cryptography-debugsourcebefore 0:42.0.5-1.el8ap0:42.0.5-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-idnabefore 0:3.7-1.el8ap0:3.7-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-jinja2before 0:3.1.4-1.el8ap0:3.1.4-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python3x-requestsbefore 0:2.32.2-1.el8ap0:2.32.2-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8receptorbefore 0:1.4.8-1.el8ap0:1.4.8-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8receptorctlbefore 0:1.4.8-1.el8ap0:1.4.8-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el9python-blackbefore 0:22.8.0-2.el9ap0:22.8.0-2.el9ap
Red Hat:ansible_automation_platform_developer:2.4::el9python-cryptographybefore 0:42.0.5-1.el9ap0:42.0.5-1.el9ap

+90

Other highest-scoring records for the same primary product.

  • CVE-2020-36242In the cryptography package before 3.3.2 for Python, certain sequences of update calls to symmetrically encrypt multi-GB values could…
    38Monitor
  • CVE-2026-26007cryptography Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
    32Monitor
  • CVE-2016-9243HKDF in cryptography before 1.5.2 returns an empty byte-string if used with a length less than algorithm.digest_size.
    31Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2023-38325Jul 14, 2023 · The cryptography package before 41.0.2 for Python mishandles SSH certificates that have critical options.
    30Monitor
  • ← EarlierCVE-2023-49083Nov 29, 2023 · cryptography vulnerable to NULL-dereference when loading PKCS7 certificates
    30Monitor
  • Later →CVE-2026-34073Mar 31, 2026 · cryptography has incomplete DNS name constraint enforcement on peer names
    6Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:python3.12-cryptography41.0.7-2.el9_6.1 · AlmaLinux:9Package registry (OSV)
debian:python-cryptography38.0.4-3+deb12u1 · Debian:12Package registry (OSV)
opensuse:python-cryptography41.0.3-150400.16.15.1 · openSUSE:Leap 15.5Package registry (OSV)
PyPI:cryptography42.0.4Package registry (OSV)
red hat:automation-controller-venv-tower0:4.5.7-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python-cryptography0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python-cryptography-debugsource0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python3-cryptography0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python3-cryptography-debuginfo0:42.0.5-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python39-cryptography0:42.0.5-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:python39-cryptography-debuginfo0:42.0.5-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:python39-pillow0:10.3.0-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python3x-cryptography0:42.0.5-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:python3x-cryptography-debugsource0:42.0.5-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:receptor0:1.4.8-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:receptorctl0:1.4.8-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
rocky linux:python3.12-cryptography0:41.0.7-2.el9_6.1 · Rocky Linux:9Package registry (OSV)
suse:python-cryptography41.0.3-150400.16.15.1 · SUSE:Linux Enterprise Module for Python 3 15 SP5Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2023-4908384 days apartcryptography vulnerable to NULL-dereference when loading PKCS7 certificates
    30Monitor

Not on record for this CVE: EPSS history · researcher credit · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records