Home

Description

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.

PUBLISHED Reserved 2026-01-27 | Published 2026-04-13 | Updated 2026-04-13 | Assigner @huntr_ai




HIGH: 8.8CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Problem types

CWE-502 Deserialization of Untrusted Data

Product status

Any version before 3.13.2
affected

References

huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c

github.com/...ommit/b6773d3decaef1b05d8e794458e148cb362f163f

cve.org (CVE-2026-1462)

nvd.nist.gov (CVE-2026-1462)

Download JSON