{
  "id": "CVE-2026-0897",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-0897",
  "published_at": "2026-01-15T14:09:53.603Z",
  "title": "Denial of Service in Keras via Excessive Memory Allocation in HDF5 Metadata",
  "vendor": "Google",
  "product": "Keras",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "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": "Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape.",
  "cwe": "CWE-770",
  "cpes": [
    "cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "HyperPS/CVE-2026-0897",
      "url": "https://github.com/HyperPS/CVE-2026-0897",
      "created_at": "2026-03-29T08:44:34Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-04-18T04:35:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Google",
        "product": "Keras",
        "ranges": [
          "\u003e= 3.0.0, \u003c= 3.13.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "keras",
        "ranges": [
          "\u003e= 3.0.0, \u003c 3.12.1"
        ],
        "fixed_in": [
          "3.12.1"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-mgx6-5cf9-rr43"
      },
      {
        "vendor": "",
        "product": "keras",
        "ranges": [
          "\u003e= 3.13.0, \u003c 3.13.2"
        ],
        "fixed_in": [
          "3.13.2"
        ],
        "ecosystem": "PyPI",
        "advisory": "GHSA-mgx6-5cf9-rr43"
      }
    ],
    "upgrade": [
      "Upgrade keras to 3.12.1 or later.",
      "Upgrade keras to 3.13.2 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/keras-team/keras/pull/21880"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
