SCA: security update for cryptography (GHSA-6vqw-3v5j-54x4)

high Tenable Self-Hosted Container Security Plugin ID 411644

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-26130)

Solution

Update the cryptography library and its related packages to version 42.0.4 or later.

See Also

https://github.com/advisories/GHSA-6vqw-3v5j-54x4

Plugin Details

Severity: High

ID: 411644

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.73

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2024-26130

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/21/2024

Vulnerability Publication Date: 2/21/2024

Reference Information

CVE: CVE-2024-26130

cwe: CWE-476