CVE-2026-1462CWE-502

Safe Mode Bypass in keras-team/keras

High · published April 13, 2026

CVSS v3.0
8.8
EPSS
0%
Percentile
33.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
8.8 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00405 · 33.6th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2026-04-13T14:55Z
EPSS history
Timeline
  • 13 APR 14:55Z
    Safe Mode Bypass in keras-team/keras
    cvelistv5