Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Keras versions before 3.12.0 are vulnerable to arbitrary local file reads and server-side request forgery when loading a model with Model.load_model, even with safe_mode=True. An attacker who supplies a specially crafted .keras file can make the StringLookup layer read a local file or fetch a remote resource, with the contents placed in the model state. Upgrade to Keras 3.12.0 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.9 | Medium | 4.0 | CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:L/VA:L/SC:H/SI:L/SA:L | CNA (Google) |
- CISA KEV Not listed.
- EPSS 0.0025, the 16th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:34 UTC First seen by agentprime
- 31 Oct 2026, 14:34 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-mq84-hjqx-cwf2
- OSV: GHSA-mq84-hjqx-cwf2
- github.com/keras-team/keras/security/advisories/GHSA-qg93-c7p6-gg7f
- nvd.nist.gov/vuln/detail/CVE-2025-12058
- github.com/keras-team/keras/pull/21751
- github.com/keras-team/keras/commit/61ac8c1e51862c471dee7b49029c356f55531487
- github.com/keras-team/keras
- www.cve.org/CVERecord?id=CVE-2025-12058