NULL Pointer Dereference Affecting python3.12-cryptography package, versions <0:41.0.7-2.el9_6.1


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.83% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL9-PYTHON312CRYPTOGRAPHY-12612048
  • published10 Sept 2025
  • disclosed21 Feb 2024

Introduced: 21 Feb 2024

CVE-2024-26130  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade RHEL:9 python3.12-cryptography to version 0:41.0.7-2.el9_6.1 or higher.
This issue was patched in RHSA-2025:15608.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3.12-cryptography package and not the python3.12-cryptography package as distributed by RHEL. See How to fix? for RHEL:9 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1