{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-8747","id":"CVE-2025-8747","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.","descriptionLong":"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.","published":"2025-08-11T07:21:16.619Z","updated":"2026-10-28T02:30:26.468487760Z","reserved":"2025-08-08T09:37:17.811Z","status":"Analyzed","rejected":false,"assigner":"Google","metric":{"version":"4.0","score":8.6,"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","rating":"high","source":"Google"},"metrics":[{"version":"4.0","score":8.6,"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","rating":"high","source":"Google"},{"version":"4.0","score":8.6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:A/V:X/RE:X/U:X","rating":"high","source":"google.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Google Keras"],"affectedProducts":[{"vendor":"Google","product":"Keras","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"3.10.0","status":"affected","version":"3.0.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":[">=3.0.0 <3.11.0"],"fixed":["3.11.0"],"advisory":"GHSA-c9rc-mg46-23w3"}],"cwes":["CWE-502"],"aliases":["GHSA-c9rc-mg46-23w3","PYSEC-2025-75"],"references":[{"url":"https://github.com/keras-team/keras/pull/21429","tags":["patch","Issue Tracking","fix","web","report"]},{"url":"https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability/","tags":["third-party-advisory","exploit","Third Party Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/8xxx/CVE-2025-8747.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8747","tags":["advisory"]},{"url":"https://github.com/keras-team/keras","tags":["package"]},{"url":"https://github.com/keras-team/keras/security/advisories/GHSA-c9rc-mg46-23w3","tags":["web"]},{"url":"https://github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-75.yaml","tags":["web"]},{"url":"https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c9rc-mg46-23w3","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00121,"epssPercentile":0.01947,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-8747","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8747","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-8747","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c9rc-mg46-23w3","ok":true,"note":"GHSA-c9rc-mg46-23w3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-8747","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}