{"id":"GHSA-cvhh-q5g5-qprp","aliases":["CVE-2025-49655","PYSEC-2026-368"],"title":"Keras framework vulnerable to deserialization of untrusted data","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"CRITICAL","description":"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.","severity":"critical","score":9.8,"published":"2025-10-17T18:31:07.000Z","modified":"2026-10-27T17:30:37.908Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"keras","sources":[{"name":"OSV · GHSA-cvhh-q5g5-qprp","url":"https://osv.dev/vulnerability/GHSA-cvhh-q5g5-qprp"}],"ranges":[{"events":[{"introduced":"3.11.0"},{"fixed":"3.11.3"}],"type":"ECOSYSTEM"}],"versions":["3.11.0","3.11.1","3.11.2"],"fixed":["3.11.3"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-49655","https://github.com/keras-team/keras/pull/21575","https://github.com/keras-team/keras","https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-368.yaml","https://hiddenlayer.com/sai_security_advisor/2025-10-keras","https://pypi.org/project/keras"],"sources":[{"name":"OSV","id":"GHSA-cvhh-q5g5-qprp","modified":"2026-10-27T17:30:37.908610942Z","url":"https://osv.dev/vulnerability/GHSA-cvhh-q5g5-qprp"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T09:15:31.408Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}