# CVE-2025-49655: Keras framework vulnerable to deserialization of untrusted data

- Severity: Critical 9.8 (CVSS:3.1, scored by HiddenLayer) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-10-17T15:20:27.308Z
- Modified: 2026-10-27T17:30:37.908Z
- Also known as: GHSA-cvhh-q5g5-qprp, PYSEC-2026-368
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: HiddenLayer

## 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.

(As written by CVE List.)

## Affected

- Keras Keras: from 3.11.0 before 3.11.3
- keras (PyPI): from 3.11.0 before 3.11.3

## Every score

- HiddenLayer: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://hiddenlayer.com/sai_security_advisor/2025-10-keras/>
- <https://github.com/keras-team/keras/pull/21575> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49655> (advisory)
- <https://github.com/keras-team/keras> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-368.yaml> (web)
- <https://hiddenlayer.com/sai_security_advisor/2025-10-keras> (web)
- <https://pypi.org/project/keras> (package, web)
- <https://github.com/advisories/GHSA-cvhh-q5g5-qprp> (advisory)

## Sources

- CVE List: [CVE-2025-49655](https://www.cve.org/CVERecord?id=CVE-2025-49655), CVE Terms of Use, modified 2025-10-17
- GitHub Advisory Database: [GHSA-cvhh-q5g5-qprp](https://github.com/advisories/GHSA-cvhh-q5g5-qprp), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2025-49655](https://nvd.nist.gov/vuln/detail/CVE-2025-49655), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-368](https://osv.dev/vulnerability/PYSEC-2026-368), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2025-49655 · Whole record: https://cve.day/CVE-2025-49655.json · Rebuilt by cve.day 2026-11-25T22:59:06.530Z
