Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-49655

Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-49655
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:33 UTC · Revision 1

Source evidence

CVE-2025-49655

core-osv · Original source

Published 17 Oct 2025, 15:20 UTC

Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.

osv:CVE-2025-49655
Complete source record
{
  "id": "0229ea1c76543dcc7323b8b44a09e56047d87e30d8de9539f7688ca5a7779da9",
  "url": "https://osv.dev/vulnerability/CVE-2025-49655",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-49655",
    "summary": "Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code on an end user’s system when loaded despite safe mode being enabled. The vulnerability can be triggered through both local and remote files.",
    "evidence": "osv:CVE-2025-49655",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-49655",
      "aliases": [
        "CVE-2025-49655",
        "GHSA-cvhh-q5g5-qprp",
        "PYSEC-2026-368"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/keras-team/keras",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7bf852c211ea41dc58bbc740c3fe64d091d37511"
                },
                {
                  "fixed": "b491c860fc2750e2b6006b55358d3251dbb4a9f0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.11.0"
                      },
                      {
                        "fixed": "3.11.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.11.2",
            "v3.11.1",
            "v3.11.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-49655.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.060642263Z",
      "provider": "osv",
      "references": [
        "https://hiddenlayer.com/sai_security_advisor/2025-10-keras/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49655.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-49655",
        "https://github.com/keras-team/keras/pull/21575",
        "https://github.com/keras-team/keras"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "HiddenLayer",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49655.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-49655",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491674,
  "published_at": "2025-10-17T15:20:27.308+00:00"
}