PT-2025-38518 · Keras+1 · Keras+1
Gabriele Digregorio
·
Published
2025-09-19
·
Updated
2025-09-19
·
CVE-2025-9906
CVSS v4.0
8.6
High
| Vector | AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A |
Name of the Vulnerable Software and Affected Versions
Keras (affected versions not specified)
Description
The
Model.load model method is susceptible to arbitrary code execution, even when safe mode is enabled. A specially crafted .keras model archive containing a modified config.json file can trigger the execution of arbitrary code. The config.json file invokes keras.config.enable unsafe deserialization() to disable safe mode. Subsequently, a Lambda layer with arbitrary Python code, serialized using pickling, can be included within the same archive to achieve code execution.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Keras