Intel

AIKIDO-2026-480615

keras is vulnerable to Arbitrary Code Execution

Arbitrary Code ExecutionCVE-2026-12481 Published Today

88

High Risk

This Affects:

PYTHONkeras
3.0.0 - 3.14.1
Fixed in 3.15.0
Are you affected? Scan for Free

TL;DR

Lambda.from_config resolves safe mode with safe_mode or in_safe_mode(), which treats an unset None the same as False. Outside a SafeModeScope, that lets attacker-controlled marshalled bytecode pass _raise_for_lambda_deserialization and load via func_load, executing arbitrary code during layer or model deserialization. The fix treats an unset safe mode as safe and only allows the load when safe mode is explicitly disabled.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you deserialize Lambda layers or models that contain them from untrusted sources outside an explicit safe-mode scope.

Background info

keras is vulnerable to Arbitrary Code Execution in versions 3.0.0 - 3.14.1.

How to fix this

Upgrade the keras library to the patch version.