Server-Side Request Forgery (SSRF) in Keras - CVE-2025-12058

 

Server-Side Request Forgery (SSRF) in Keras - CVE-2025-12058

Published: November 17, 2025 / Updated: February 6, 2026


Vulnerability identifier: #VU118556
CSH Severity: Medium
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2025-12058
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote user to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input passed via a specially crafted .keras archive within the Keras.Model.load_model method. A remote user can upload a malicious .keras file that embeds a local or remote path in the StringLookup layer's configuration and trick the application to initiate requests to arbitrary files or external systems.

Successful exploitation of this vulnerability may allow a remote attacker gain access to sensitive data, located in the local network or send malicious requests to other servers from the vulnerable system.

Note, the vulnerability can be exploited even with the "safe_mode=True" flag.


Affected software

Keras
IBM Watson Discovery for IBM Cloud Pak for Data
Maximo Application Suite Ai Service
openEuler
python-Keras
python-Keras-help
python3-Keras

How to mitigate CVE-2025-12058

Install updates from vendor's website.

Keras - update to 3.12.0
IBM Watson Discovery for IBM Cloud Pak for Data - update to 5.3.0
Maximo Application Suite Ai Service - update to 9.1.10
python-Keras - update to 2.12.0-2
python-Keras-help - update to 2.12.0-2
python3-Keras - update to 2.12.0-2

External References

Related Security Bulletins