{
  "id": "CVE-2025-8747",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-8747",
  "published_at": "2025-08-11T07:21:16.619Z",
  "title": "Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.",
  "vendor": "Google",
  "product": "Keras",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-502",
  "cpes": [
    "cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.6,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Google",
        "product": "Keras",
        "ranges": [
          "\u003e= 3.0.0, \u003c= 3.10.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "keras",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.11.0"
        ],
        "fixed_in": [
          "3.11.0"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-c9rc-mg46-23w3"
      }
    ],
    "solutions": [
      "Upgrade to a version of Keras with the fix implemented (version 3.11.0 or newer)."
    ],
    "upgrade": [
      "Upgrade keras to 3.11.0 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/keras-team/keras/pull/21429"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
