CVE-2026-9335

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.
Configurations

No configuration.

History

23 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) Una vulnerabilidad en las versiones menor o igual que 3.14.0 de keras-team/keras permite la divulgación arbitraria de contenido de archivos HDF5 locales debido a un manejo inadecuado de los ExternalLinks de HDF5. Las funciones ’KerasFileEditor’ y ’keras.saving.load_weights’ omiten los ayudantes ’safe_get_h5_group’ y ’safe_get_h5_dataset’, que están diseñados para rechazar ExternalLinks y SoftLinks. Esto resulta en la desreferenciación automática de enlaces a archivos HDF5 externos, permitiendo a los atacantes divulgar datos sensibles del sistema de archivos local de la víctima. Específicamente, ’KerasFileEditor’ extrae atributos y conjuntos de datos de archivos enlazados a sus estructuras internas, mientras que ’keras.saving.load_weights’ carga pesos de archivos enlazados en el modelo del usuario. Este problema puede ser explotado al proporcionar un archivo malicioso ’.h5’, ’.weights.h5’ o ’.keras’ que contenga ExternalLinks.

Information

Published : 2026-08-02 05:16

Updated : 2026-10-23 22:10


NVD link : CVE-2026-9335

Mitre link : CVE-2026-9335

CVE.ORG link : CVE-2026-9335


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')