keras is vulnerable to Arbitrary Code Execution
88
High Risk
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.
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.
keras is vulnerable to Arbitrary Code Execution in versions 3.0.0 - 3.14.1.
Upgrade the keras library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant