Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-26130

published high CVSS 3.1 · 7.5

cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override

Published
21 Feb 2024, 16:28:18 UTC
Updated
14 Aug 2024, 20:01:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
pyca — cryptography>= 38.0.0, < 42.0.4 Affected Not stated GitHub_M
cryptography_project — cryptography38.0.0 to < 42.04 · Other versions: unknown Affected Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 9 python3.12-cryptography Advisory build 41.0.7-2.el9_6.1 ALSA-2025:15608
Oracle Linux 8 python3.12-cryptographyaarch64 Advisory build 0:41.0.7-1.0.1.el8 ELSA-2025-20364
Red Hat Enterprise Linux RHEL-9 python3.12-cryptographyaarch64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
SUSE / openSUSE SLE-15-SP5 python311-cryptographyaarch64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
Show 77 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble python-cryptography Advisory build 41.0.7-4ubuntu0.1 USN-6673-3
Rocky Linux 9 python3.12-cryptographyaarch64 Listed in advisory Not stated RLSA-2025:15608
Oracle Linux 8 python3.12-cryptographyx86_64 Advisory build 0:41.0.7-1.0.1.el8 ELSA-2025-20364
Oracle Linux 9 python3.12-cryptographyaarch64 Advisory build 0:41.0.7-2.el9_6.1 ELSA-2025-15608
Oracle Linux 9 python3.12-cryptographyx86_64 Advisory build 0:41.0.7-2.el9_6.1 ELSA-2025-15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptographyppc64le Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptographys390x Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptographysrc Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptographyx86_64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debuginfoaarch64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debuginfoppc64le Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debuginfos390x Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debuginfox86_64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debugsourceaarch64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debugsourceppc64le Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debugsources390x Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
Red Hat Enterprise Linux RHEL-9 python3.12-cryptography-debugsourcex86_64 Advisory build 41.0.7-2.el9_6.1 RHSA-2025:15608
SUSE / openSUSE SLE-15-SP5 python311-cryptographyppc64le Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-15-SP5 python311-cryptographys390x Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-15-SP5 python311-cryptographyx86_64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-15-SP6 python311-cryptographyaarch64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-15-SP6 python311-cryptographyppc64le Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-15-SP6 python311-cryptographys390x Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-15-SP6 python311-cryptographyx86_64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-3-SP5 python311-cryptographyaarch64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-3-SP5 python311-cryptographyppc64le Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-3-SP5 python311-cryptographys390x Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-3-SP5 python311-cryptographyx86_64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE SLE-3-SP6 python311-cryptographyaarch64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-3-SP6 python311-cryptographyppc64le Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-3-SP6 python311-cryptographys390x Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE SLE-3-SP6 python311-cryptographyx86_64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE openSUSE-Leap-15.5 python311-cryptographyaarch64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE openSUSE-Leap-15.5 python311-cryptographyppc64le Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE openSUSE-Leap-15.5 python311-cryptographys390x Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE openSUSE-Leap-15.5 python311-cryptographyx86_64 Advisory build 41.0.3-150400.16.15.1 SUSE-SU-2024:0763-1
SUSE / openSUSE openSUSE-Leap-15.6 python311-cryptographyaarch64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE openSUSE-Leap-15.6 python311-cryptographyppc64le Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE openSUSE-Leap-15.6 python311-cryptographys390x Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE openSUSE-Leap-15.6 python311-cryptographyx86_64 Advisory build 41.0.3-150600.23.3.1 SUSE-SU-2024:2138-1
SUSE / openSUSE openSUSE-Tumbleweed python310-cryptographyaarch64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python310-cryptographyppc64le Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python310-cryptographys390x Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python310-cryptographyx86_64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python311-cryptographyaarch64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python311-cryptographyppc64le Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python311-cryptographys390x Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python311-cryptographyx86_64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python312-cryptographyaarch64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python312-cryptographyppc64le Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python312-cryptographys390x Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python312-cryptographyx86_64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python313-cryptographyaarch64 Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python313-cryptographyppc64le Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python313-cryptographys390x Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python313-cryptographyx86_64 Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python314-cryptographyaarch64 Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python314-cryptographyppc64le Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python314-cryptographys390x Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python314-cryptographyx86_64 Advisory build 50.0.0-1.1 OPENSUSE-SU-2026:11468-1
SUSE / openSUSE openSUSE-Tumbleweed python39-cryptographyaarch64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python39-cryptographyppc64le Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python39-cryptographys390x Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
SUSE / openSUSE openSUSE-Tumbleweed python39-cryptographyx86_64 Advisory build 42.0.4-1.1 OPENSUSE-SU-2024:13710-1
Ubuntu noble python3-cryptography Advisory build 41.0.7-4ubuntu0.1 USN-6673-3
Rocky Linux 9 python3.12-cryptographyppc64le Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptographys390x Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptographysrc Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptographyx86_64 Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debuginfoaarch64 Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debuginfoppc64le Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debuginfos390x Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debuginfox86_64 Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debugsourceaarch64 Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debugsourceppc64le Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debugsources390x Listed in advisory Not stated RLSA-2025:15608
Rocky Linux 9 python3.12-cryptography-debugsourcex86_64 Listed in advisory Not stated RLSA-2025:15608

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

14

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.5 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
pyca cryptography >= 38.0.0, < 42.0.4 (affected) GitHub_M · cna
cryptography_project cryptography 38.0.0 to < 42.04 (affected · custom)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-476 CWE-476: NULL Pointer Dereference (GitHub_M · cna)

References

3

Provider assertions

3

GitHub_M · cna

cryptography NULL pointer deference with pkcs12.serialize_key_and_certificates when called with a non-matching certificate and private key and an hmac_hash override

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
dddb688a756399eea0ba35e46be21cdd2c419e90cf48dc9e036039c6dd09f093
Ingested
23 Sep 2026, 08:20:20 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected