MTIby Motiontic
Colour theme
VulnerabilityCVE-2025-9905DEBIAN-CVE-2025-9905GHSA-36rr-ww3j-vrjv

Arbitary Code execution in Keras load_model()

Not on CISA KEV
  • Overview

Summary

The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed. This is achieved by crafting a special .h5

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • Debian Source: Debian
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)