{"id":"UBUNTU-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.","modified":"2025-10-30T05:25:17Z","published":"2025-10-17T16:15:00Z","upstream":["CVE-2025-49655"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-49655"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-49655"},{"type":"REPORT","url":"https://github.com/keras-team/keras/pull/21575"},{"type":"REPORT","url":"https://hiddenlayer.com/sai_security_advisor/2025-10-keras/"}],"affected":[{"package":{"name":"keras","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/keras@2.1.1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.7-2","2.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1-1","binary_name":"python3-keras"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-49655.json"}},{"package":{"name":"keras","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/keras@2.2.4-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-keras","binary_version":"2.2.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-49655.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}