Skip to main content
← All vulnerabilities
CVE-2026-1462PYSEC-2026-2547GHSA-4F3F-G24H-FR8M

Safe Mode Bypass in keras-team/keras

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.13.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • keras-team keras-team/keras

    fixed in 3.13.2

  • kerasPyPI

    fixed in 3.13.2

  • kerasPyPI

    fixed in 3.13.2

References 2

huntr.com

GitHub · keras-team/keras