ADVISORIES

Vulnerability

CVE-2026-1462

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.

5 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • CGA-rgm8-c4v3-j9ww
    CVE-2026-1462 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2026-1462

    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…

    CVE-2026-1462 Debian Updated 24 November 2026
  • GHSA-4f3f-g24h-fr8m

    Keras has an untrusted deserialization vulnerability

    High CVE-2026-1462 PyPI Updated 10 September 2026
  • PYSEC-2026-2547

    Keras has an untrusted deserialization vulnerability

    CVE-2026-1462 PyPI Updated 13 July 2026
  • UBUNTU-CVE-2026-1462

    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…

    CVE-2026-1462 Ubuntu Updated 11 November 2026

References