Keras Vulnerability Lets Attackers Execute Code Via SavedModels

Keras Vulnerability Lets Attackers Execute Code Via SavedModels

The National Vulnerability Database has flagged a critical security flaw in the popular Keras machine learning library. Identified as CVE-2026-1462, this vulnerability resides within the TFSMLayer class of the Keras package, specifically affecting version 3.13.0. The issue allows attackers to bypass safe_mode protections when deserializing .keras models. By crafting malicious TensorFlow SavedModels, an attacker can trick the deserialization process into loading these external models, even when safe_mode is enabled. This bypass ultimately leads to arbitrary code execution on the victim’s system with their privileges during model inference.

The National Vulnerability Database points to flaws in how the from_config() method handles model loading. It appears to unconditionally load external SavedModels and serializes attacker-controlled file paths without proper validation. This oversight creates a dangerous pathway for attackers to inject malicious code, turning a seemingly secure model loading process into a potent attack vector. The reported CVSS score of 8.8 (HIGH) underscores the severity of this vulnerability, highlighting the significant risk it poses to users of affected Keras versions.

Related ATT&CK Techniques

🛡️ Detection Rules

7 rules · 5 SIEM formats

7 auto-generated detection rules for this incident, mapped to MITRE ATT&CK. Available in Sigma, Splunk SPL, Sentinel KQL, Elastic Lucene, and QRadar AQL.

high T1505.003 Privilege Escalation

Web Shell Activity Detection — CVE-2026-1462

Sigma Splunk SPL Sentinel KQL Elastic QRadar AQL

Get this rule in your SIEM's native format — copy, paste, detect. No manual conversion.

7 Sigma rules mapped to the ATT&CK techniques from this breach — pick your SIEM and get a ready-to-paste query.

Get Detection Rules →

Indicators of Compromise

IDTypeIndicator
CVE-2026-1462 Vulnerability CVE-2026-1462

Related Posts

Critical RCE Flaw Hits NuGet Gallery Backend

CVE-2026-39399 — NuGet Gallery is a package repository that powers nuget.org. A security vulnerability exists in the NuGetGallery backend job’s handling of .nuspec files within...

vulnerabilityCVEcriticalhigh-severityremote-code-executioncwe-20cwe-22
/CRITICAL /⚑ 4 IOCs

BoidCMS LFI to RCE: A Critical Template Flaw

CVE-2026-39387 — BoidCMS is an open-source, PHP-based flat-file CMS for building simple websites and blogs, using JSON as its database. Versions prior to 2.1.3 are...

vulnerabilityCVEhigh-severityremote-code-executioncwe-98
/HIGH /⚑ 4 IOCs

Nanobot AI: WebSocket Hijack Puts WhatsApp Sessions at Risk

CVE-2026-35589 — nanobot is a personal AI assistant. Versions prior to 0.1.5 contain a Cross-Site WebSocket Hijacking (CSWSH) vulnerability exists in the bridge's WebSocket server...

vulnerabilityCVEhigh-severitycwe-1385
/HIGH /⚑ 5 IOCs