SCA: security update for keras (GHSA-m8wh-29wm-52mv)

medium Tenable Cloud Security Plugin ID 497839

Description

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

- A vulnerability in keras-team/keras versions <= 3.14.0 allows arbitrary local HDF5 file content disclosure
due to improper handling of HDF5 ExternalLinks. The `KerasFileEditor` and `keras.saving.load_weights`
functions bypass the `safe_get_h5_group` and `safe_get_h5_dataset` helpers, which are designed to reject
ExternalLinks and SoftLinks. This results in automatic dereferencing of links to external HDF5 files,
enabling attackers to disclose sensitive data from the victim's local filesystem. Specifically,
`KerasFileEditor` extracts attributes and datasets from linked files into its internal structures, while
`keras.saving.load_weights` loads weights from linked files into the user's model. This issue can be
exploited by providing a malicious `.h5`, `.weights.h5`, or `.keras` file containing ExternalLinks.
(CVE-2026-9335)

Solution

Update the keras library and its related packages to version 3.12.3 or later.

See Also

https://github.com/advisories/GHSA-m8wh-29wm-52mv

Plugin Details

Severity: Medium

ID: 497839

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 12/3/2026

Updated: 12/3/2026

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

Percentile: 96.05

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

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

CVSS Score Source: CVE-2026-9335

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/2/2026

Vulnerability Publication Date: 8/2/2026

Reference Information

CVE: CVE-2026-9335

cwe: CWE-22