CVE-2025-49655
CRITICAL 9.8CVSS 3.1Keras framework vulnerable to deserialization of untrusted data
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.
- Published
- 17 Oct 2025
- Last modified
- 27 Oct 2026
- Assigned by
- 6f8de1f0-f67e-45a6-b68f-98777fdb759c
- NVD status
- Deferred
- Weakness
- CWE-502
- Also known as
- GHSA-cvhh-q5g5-qprpPYSEC-2026-368
- Sources
- NVDJSONOSV GHSA-cvhh-q5g5-qprpJSONOSV PYSEC-2026-368JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6f8de1f0-f67e-45a6-b68f-98777fdb759c (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | keras | >= 3.11.0, < 3.11.3 | 3.11.3 |
References
- https://github.com/keras-team/keras/pull/21575 · WEB
- https://hiddenlayer.com/sai_security_advisor/2025-10-keras/ · 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://pypi.org/project/keras · WEB, PACKAGE
- https://github.com/advisories/GHSA-cvhh-q5g5-qprp · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Oct 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 Oct 2025)