Automated Threat Modeling

CVE-2026-1462: Vulnerability Analysis

CVE-2026-1462 (CVSS 8.8): in keras 3.13.0, the TFSMLayer class loads attacker-controlled TensorFlow SavedModels during .keras model deserialization, even when safe_mode=True.

CVE Analysis

5 min read

ZeroPath Security Research
ZeroPath Security Research

2026-04-13

CVE-2026-1462: Vulnerability Analysis
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

CVE-2026-1462: Vulnerability Analysis

Executive summary

In version 3.13.0 of the keras package, the TFSMLayer class loads attacker-controlled TensorFlow SavedModels when it deserializes a .keras model, even when safe_mode=True. That defeats the protection safe_mode is meant to give, and it lets attacker-controlled code run during model inference with the victim's privileges.

An error stopped the full analysis from being generated, so this post contains only the technical specifications and references below.

Technical specifications

  • CVE ID: CVE-2026-1462
  • Vendors: Unknown
  • Date Reported: 2026-04-13T15:17:18.967
  • CVSS Score: 8.8
  • Description: A vulnerability in the TFSMLayer class of the keras package, version 3.13.0, lets attacker-controlled TensorFlow SavedModels load during deserialization of .keras models, even when safe_mode=True. This bypasses the security guarantees of safe_mode and allows arbitrary attacker-controlled code to run during model inference under the victim's privileges. Three things cause it: external SavedModels load unconditionally, attacker-controlled file paths are serialized, and the from_config() method performs no validation.
  • CWE IDs: CWE-502

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization