Deserialization of Untrusted Data in Keras - CVE-2025-8747

 

Deserialization of Untrusted Data in Keras - CVE-2025-8747

Published: December 18, 2025


Vulnerability identifier: #VU120185
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-8747
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation when processing serialized data even when "safe_mode" is enabled. A remote attacker can trick the victim into loading a specially crafted Keras v3 model and execute arbitrary code on the system.

This vulnerability exists due to an incomplete fix for #VU106013 (CVE-2025-1550).


Affected software

Keras
IBM Watson Machine Learning on CP4D
Watson Studio on Cloud Pak for Data

How to mitigate CVE-2025-8747

Install updates from vendor's website.

Keras - update to 3.11.0
Watson Studio on Cloud Pak for Data - update to 5.2.2

External References

Related Security Bulletins