{"id":"CVE-2025-49655","aliases":["CVE-2025-49655","GHSA-cvhh-q5g5-qprp","PYSEC-2026-368"],"related":[],"kind":"vulnerability","state":"published","title":"Keras framework vulnerable to deserialization of untrusted data","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La deserialización de datos no confiables puede ocurrir en versiones del framework Keras que ejecutan versiones 3.11.0 hasta la 3.11.3 (sin incluir esta última), permitiendo que un archivo Keras cargado maliciosamente que contiene una clase 'TorchModuleWrapper' ejecute código arbitrario en el sistema de un usuario final al cargarse, a pesar de que el modo seguro esté habilitado. La vulnerabilidad puede activarse a través de archivos tanto locales como remotos.","source":"nvd"}],"published":"2025-10-17T15:20:27.308Z","modified":"2026-10-27T17:30:37.908Z","severity":{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"3.11.0","fixed":"3.11.3","status":"affected"}],"vendor":"Keras","product":"Keras","repo":"https://github.com/keras-team/keras","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.11.0","status":"affected","fixed":"3.11.3"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.11.0","status":"affected","fixed":"3.11.3"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"pysec"}],"references":[{"url":"https://hiddenlayer.com/sai_security_advisor/2025-10-keras/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/keras-team/keras/pull/21575","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49655","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-368.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://hiddenlayer.com/sai_security_advisor/2025-10-keras","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/keras","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-cvhh-q5g5-qprp","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"HiddenLayer","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-10-17T15:57:54.529Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49655","url":"https://www.cve.org/CVERecord?id=CVE-2025-49655","licence":"CVE Terms of Use","modified":"2025-10-17T15:58:34.204Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cvhh-q5g5-qprp","url":"https://github.com/advisories/GHSA-cvhh-q5g5-qprp","licence":"CC-BY-4.0","modified":"2026-10-27T17:30:37.908Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49655","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49655","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-368","url":"https://osv.dev/vulnerability/PYSEC-2026-368","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:55.074Z"}],"updatedAt":"2026-11-25T22:59:06.530Z","epss":{"score":0.0077,"percentile":0.56833,"date":"2026-12-01T12:00:22.000Z"}}