Skip to content
HighVulnerability

CVE-2026-1462: Keras TFSMLayer loads attacker-controlled SavedModels despite safe_mode

Identifier
CVE-2026-1462
Published
Record updated
View JSON
Affected
  • keras < 3.13.2
Fixed in
3.13.2
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

CVE-2026-1462 affects the `TFSMLayer` class in the `keras` package, version 3.13.0. Attacker-controlled TensorFlow SavedModels load during deserialization of `.keras` models even when `safe_mode=True`, bypassing that protection. The result is arbitrary code execution during model inference under the victim's privileges, caused by unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and missing validation in `from_config()`.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.