keras is vulnerable to Unsafe Deserialization
78
CVE Score
High
Unsafe Deserialization
TorchModuleWrapper.from_config restores a base64-encoded torch.nn.Module with torch.load(..., weights_only=False). Its safe-mode check only blocked when ambient in_safe_mode() was truthy, so a direct from_config call—or any path where the deserialization scope is unset—still unpickled attacker-controlled data and could execute arbitrary code. The fix treats an unset safe mode as safe and refuses the load unless safe_mode is explicitly disabled.
Upgrade the keras library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you deserialize TorchModuleWrapper configs or models that contain them from untrusted sources.
3.11.3 - 3.12.2
Fixed in 3.12.33.13.0 - 3.14.1
Fixed in 3.15.0keras is vulnerable to Unsafe Deserialization in versions 3.11.3 - 3.12.2 and 3.13.0 - 3.14.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.