{"id":"CVE-2025-8747","state":"PUBLISHED","title":"Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.","description":"A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.","publishedAt":"2025-08-11T07:21:16.619Z","updatedAt":"2026-02-26T17:49:45.906Z","severity":{"score":8.6,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A","source":"Google"},"assigner":"Google","products":["Google Keras"],"affected":[{"vendor":"Google","product":"Keras","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"3.10.0","versionType":"semver"}],"repo":"https://github.com/keras-team/keras"}],"references":["https://github.com/keras-team/keras/pull/21429","https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability/"],"weaknesses":["CWE-502"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/8xxx/CVE-2025-8747.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-8747","state":"PUBLISHED","datePublished":"2025-08-11T07:21:16.619Z","dateUpdated":"2026-02-26T17:49:45.906Z","assignerShortName":"Google","assignerOrgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateReserved":"2025-08-08T09:37:17.811Z"},"containers":{"cna":{"title":"Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.","descriptions":[{"lang":"en","value":"A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive."}],"affected":[{"vendor":"Google","product":"Keras","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThanOrEqual":"3.10.0","versionType":"semver"}],"repo":"https://github.com/keras-team/keras"}],"references":[{"url":"https://github.com/keras-team/keras/pull/21429","tags":["patch"]},{"url":"https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability/","tags":["third-party-advisory"]}],"metrics":[{"cvssV4_0":{"Automatable":"YES","Recovery":"AUTOMATIC","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":8.6,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","description":"CWE-502 Deserialization of Untrusted Data","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Google","orgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateUpdated":"2025-08-11T07:21:16.619Z"},"credits":[{"lang":"en","type":"reporter","value":"JFrog Security Research Team"}],"datePublic":"2025-06-14T09:00:00.000Z","impacts":[{"capecId":"CAPEC-242","descriptions":[{"lang":"en","value":"CAPEC-242 Code Injection"}]}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Upgrade to a version of Keras with the fix implemented (version 3.11.0 or newer)."}],"value":"Upgrade to a version of Keras with the fix implemented (version 3.11.0 or newer)."}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability/","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-8747","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-08-15T03:55:48.540132Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T17:49:45.906Z"}}]}}}