Improper Control of Dynamically-Managed Code Resources in Keras - CVE-2025-9905
Published: December 9, 2025
Vulnerability identifier: #VU119402
CSH Severity: Medium
CVSS v4.0: 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/E:U/U:Green
CVE-ID: CVE-2025-9905
CWE-ID: CWE-913
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: Keras
Affected software:
Keras
Keras
Detailed vulnerability description
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.
How to mitigate CVE-2025-9905
Install updates from vendor's website.