pyca cryptography up to 42.0.3 PrivateFormat.PKCS12.encryption_builder.hmac_hash null pointer dereference

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.7$0-$5k0.00

Summaryinfo

A vulnerability has been found in pyca cryptography up to 42.0.3 and classified as problematic. The affected element is the function PrivateFormat.PKCS12.encryption_builder.hmac_hash. This manipulation causes null pointer dereference. This vulnerability is registered as CVE-2024-26130. Remote exploitation of the attack is possible. No exploit is available. The affected component should be upgraded.

Detailsinfo

A vulnerability has been found in pyca cryptography up to 42.0.3 and classified as problematic. Affected by this vulnerability is the function PrivateFormat.PKCS12.encryption_builder.hmac_hash. The manipulation with an unknown input leads to a null pointer dereference vulnerability. The CWE definition for the vulnerability is CWE-476. A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit. As an impact it is known to affect availability. The summary by CVE is:

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.

The weakness was published 02/21/2024. The advisory is shared at github.com. This vulnerability is known as CVE-2024-26130 since 02/14/2024. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 208713 (RHEL 8 : Satellite 6.15.4 Security Update (Moderate) (RHSA-2024:7987)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 42.0.4 eliminates this vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (208713). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.8
VulDB Meta Temp Score: 6.7

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.5
NVD Vector: 🔍

CNA Base Score: 7.5
CNA Vector (GitHub, Inc.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Null pointer dereference
CWE: CWE-476 / CWE-404
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 208713
Nessus Name: RHEL 8 : Satellite 6.15.4 Security Update (Moderate) (RHSA-2024:7987)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: cryptography 42.0.4
Patch: github.com

Timelineinfo

02/14/2024 🔍
02/21/2024 +7 days 🔍
02/21/2024 +0 days 🔍
02/06/2025 +351 days 🔍

Sourcesinfo

Product: github.com

Advisory: 97d231672763cdb5959a3b191e692a362f1b9e55
Status: Confirmed

CVE: CVE-2024-26130 (🔍)
GCVE (CVE): GCVE-0-2024-26130
GCVE (VulDB): GCVE-100-254425

Entryinfo

Created: 02/21/2024 18:17
Updated: 02/06/2025 10:12
Changes: 02/21/2024 18:17 (49), 03/13/2024 09:23 (2), 03/13/2024 09:27 (2), 10/11/2024 13:20 (17), 02/06/2025 10:12 (12)
Complete: 🔍
Cache ID: 216::103

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!