Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-26130

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

Overview

Published
21 Feb 2024
Modified
17 Jun 2026
High CVE
1 Registry packages
20 OS packages
14 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

Weakness: CWE-476

Affected packages · 1

Packages affected by CVE-2024-26130
EcosystemPackageVulnerableFixed in
PyPI cryptography >=38.0.0, <42.0.4 42.0.4

Open a package to see all its vulnerabilities.

Operating systems · 34 fixes

Oracle Linux 2 releases · 1 package

fixed 2
python3-12-cryptography
Oracle Linux fixes for CVE-2024-26130
ReleasePackageFixed in
8 python3-12-cryptography 41.0.7-1.0.1.el8
9 python3-12-cryptography 41.0.7-2.el9_6.1

Photon OS 2 releases · 1 package

fixed 2
python3-cryptography
Photon OS fixes for CVE-2024-26130
ReleasePackageFixed in
4.0 python3-cryptography 41.0.7-2.ph4
5.0 python3-cryptography 41.0.7-3.ph5

Red Hat 2 releases · 2 packages

affected 1 fixed 1
python-cryptography python3-12-cryptography
Red Hat fixes for CVE-2024-26130
ReleasePackageFixed inAdvisory
7 python-cryptography +1 affected —
9 python3-12-cryptography 0:41.0.7-2.el9_6.1 RHSA-2025:15608

SUSE Linux Enterprise 2 releases · 1 package

fixed 2
python311-cryptography
SUSE Linux Enterprise fixes for CVE-2024-26130
ReleasePackageFixed inAdvisory
15.5 python311-cryptography 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
15.6 python311-cryptography 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1

alma 1 release · 1 package

fixed 1
python3-12-cryptography
alma fixes for CVE-2024-26130
ReleasePackageFixed in
9 python3-12-cryptography 41.0.7-2.el9_6.1

chainguard 1 release · 8 packages

fixed 8
py3-cassandra-medusa request-1276 ggshield mitmproxy kubeflow-pipelines airflow +2
chainguard fixes for CVE-2024-26130
ReleasePackageFixed in
py3-cassandra-medusa 0.19.1-r1
request-1276 0.23.0-r30
ggshield 1.25.0-r0
mitmproxy 12.2.1-r0
kubeflow-pipelines 2.0.5-r3
airflow 2.10.5-r44

2 more rows

debian 3 releases · 1 package

fixed 3
python-cryptography
debian fixes for CVE-2024-26130
ReleasePackageFixed in
12 python-cryptography 38.0.4-3+deb12u1
13 python-cryptography 42.0.5-1
14 python-cryptography 42.0.5-1

echo 1 release · 1 package

fixed 1
python-cryptography
echo fixes for CVE-2024-26130
ReleasePackageFixed in
python-cryptography 38.0.4-3+deb12u1

openSUSE 1 release · 2 packages

fixed 2
python310-cryptography python313-cryptography
openSUSE fixes for CVE-2024-26130
ReleasePackageFixed inAdvisory
Tumbleweed python310-cryptography +3 42.0.4-1.1 openSUSE-SU-2024:13710-1
Tumbleweed python313-cryptography +1 50.0.0-1.1 openSUSE-SU-2026:11468-1

rocky 1 release · 1 package

fixed 1
python3-12-cryptography
rocky fixes for CVE-2024-26130
ReleasePackageFixed in
9 python3-12-cryptography 41.0.7-2.el9_6.1

root.io debian 1 release · 1 package

fixed 1
rootio-python-cryptography
root.io debian fixes for CVE-2024-26130
ReleasePackageFixed in
12 rootio-python-cryptography 38.0.4-3+deb12u1

seal Red Hat 1 release · 1 package

fixed 1
python-jinja2
seal Red Hat fixes for CVE-2024-26130
ReleasePackageFixed in
7 python-jinja2 +1 2.7.2-4.el7+sp999

ubuntu 1 release · 1 package

fixed 1
python-cryptography
ubuntu fixes for CVE-2024-26130
ReleasePackageFixed in
24.04 python-cryptography 41.0.7-4ubuntu0.1

wolfi 1 release · 7 packages

fixed 7
py3-cassandra-medusa ggshield mitmproxy kubeflow-pipelines airflow az +1
wolfi fixes for CVE-2024-26130
ReleasePackageFixed in
py3-cassandra-medusa 0.19.1-r1
ggshield 1.25.0-r0
mitmproxy 12.2.1-r0
kubeflow-pipelines 2.0.5-r3
airflow 2.10.5-r44
az 2.58.0-r0

1 more row

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.