HighVulnerability
CVE-2025-9905: Keras Model.load_model arbitrary code execution through crafted .h5 archives
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-9905
- Published
- Record updated
- Affected
- keras >= 3.0.0, < 3.11.3
- Fixed in
- 3.11.3
- released August 21, 2025, 29 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
CVE-2025-9905 is a flaw in the Keras Model.load_model method that allows arbitrary code execution even when safe_mode=True is set. A specially crafted .h5/.hdf5 model archive uses a Lambda layer to embed pickled Python code, and the safe_mode=True option is not honored when reading .h5 archives. The .h5/.hdf5 format is a legacy format that Keras 3 supports for backwards compatibility.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- kerasPyPINo LLM dependency detected · 6 tracked dependents
Related items
- MediumCVE-2026-111372: AI ChatBot for WooCommerce WoowBot plugin authorization bypass in RAG syncSame vendor · NVD/CVE Database
- HighCVE-2026-117560: ATXP Gemini CLI extension OS command injection in runAtxp() via MCP parametersSame vendor · NVD/CVE Database
- CriticalCVE-2026-90970: GitLab AI Gateway prompt template sandbox escape via crafted flow configurationSame vendor · NVD/CVE Database
- MediumCVE-2026-89278: GPTranslate WordPress plugin exposes plaintext API key to unauthenticated usersSame vendor · NVD/CVE Database
- CriticalCVE-2026-19407: Google Cloud Gemini Enterprise Agent Platform SDK for Python bucket squattingSame vendor · NVD/CVE Database