External Control of File Name or Path Affecting keras package, versions [,3.12.2)[3.13.0,3.14.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd 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-PYTHON-KERAS-17756759
  • published1 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

CVE-2026-12480  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade keras to version 3.12.2, 3.14.1 or higher.

Overview

keras is a Keras is a high-level neural networks API for Python..

Affected versions of this package are vulnerable to External Control of File Name or Path via the H5IOStore._verify_dataset function and the file_editor.py process. An attacker can access arbitrary files on the filesystem by crafting a malicious .keras model archive or .h5 weights file containing a Virtual Dataset (VDS) that references external HDF5 files, which are then read when the model is loaded.

CVSS Base Scores

version 4.0
version 3.1