{"id":"CVE-2025-49655","details":"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.","aliases":["GHSA-cvhh-q5g5-qprp","PYSEC-2026-368"],"modified":"2026-08-12T03:51:42.184157192Z","published":"2025-10-17T15:20:27.308Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49655.json","cna_assigner":"HiddenLayer","cwe_ids":["CWE-502"]},"references":[{"type":"WEB","url":"https://hiddenlayer.com/sai_security_advisor/2025-10-keras/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/49xxx/CVE-2025-49655.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49655"},{"type":"FIX","url":"https://github.com/keras-team/keras/pull/21575"},{"type":"PACKAGE","url":"https://github.com/keras-team/keras"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/keras-team/keras","events":[{"introduced":"7bf852c211ea41dc58bbc740c3fe64d091d37511"},{"fixed":"b491c860fc2750e2b6006b55358d3251dbb4a9f0"}],"database_specific":{"extracted_events":[{"introduced":"3.11.0"},{"fixed":"3.11.3"}],"source":"AFFECTED_FIELD"}}],"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}