{"id":"PYSEC-2026-368","summary":"Keras framework vulnerable to deserialization of untrusted data","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":["CVE-2025-49655","GHSA-cvhh-q5g5-qprp"],"modified":"2026-07-01T20:22:55.074992Z","published":"2026-06-29T11:50:37.095983Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49655"},{"type":"WEB","url":"https://github.com/keras-team/keras/pull/21575"},{"type":"PACKAGE","url":"https://github.com/keras-team/keras"},{"type":"WEB","url":"https://hiddenlayer.com/sai_security_advisor/2025-10-keras"},{"type":"PACKAGE","url":"https://pypi.org/project/keras"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cvhh-q5g5-qprp"}],"affected":[{"package":{"name":"keras","ecosystem":"PyPI","purl":"pkg:pypi/keras"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11.0"},{"fixed":"3.11.3"}]}],"versions":["3.11.0","3.11.1","3.11.2"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/keras/PYSEC-2026-368.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}