Live threats

All CVEs / Keras

CVE-2026-1462Keras

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
—
Auth required
Yes
Published
Apr 13, 2026
Updated
Jul 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.

Original NVD text.

What to do

  1. Apply the vendor's security update for Keras.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI keras < 3.13.2 3.13.2 pip install "keras>=3.13.2"
PyPI keras < 3.13.2 3.13.2 pip install "keras>=3.13.2"

Per OSV / GitHub Advisories (GHSA-4f3f-g24h-fr8m, PYSEC-2026-2547). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
keraskeras3.13.0
redhatopenshift_ai≥ 2.25 < 2.25.7

Official sources

References

Links published by the sources. Open them with care.