Improper Control of Dynamically-Managed Code Resources in Keras - CVE-2025-9905

 

Improper Control of Dynamically-Managed Code Resources in Keras - CVE-2025-9905

Published: December 9, 2025


Vulnerability identifier: #VU119402
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-9905
CWE-ID: CWE-913
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 improper input validation within the Model.load_model() method. A remote attacker can trick the victim into loading a crafted .h5/.hdf5 model archive and execute arbitrary code on the system.


Affected software

Keras
Red Hat OpenShift AI (RHOAI)

How to mitigate CVE-2025-9905

Install updates from vendor's website.

Keras - update to 3.11.3
Red Hat OpenShift AI (RHOAI) - addressed in versions 2.22.3, 2.25.1

External References

Related Security Bulletins