CVE-2026-1462Keras
High 7.8
Follow: this CVE · Keras · Keras We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- Apr 13, 2026
- Updated
- Jul 15, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.
What to do
- Apply the vendor's security update for Keras.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | keras |
< 3.13.2 |
3.13.2 |
pip install "keras>=3.13.2" |
| PyPI | keras |
< 3.13.2 |
3.13.2 |
pip install "keras>=3.13.2" |
Per OSV / GitHub Advisories (GHSA-4f3f-g24h-fr8m, PYSEC-2026-2547). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| keras | keras | 3.13.0 |
| redhat | openshift_ai | ≥ 2.25 < 2.25.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com
- access.redhat.com Third Party Advisory
- bugzilla.redhat.com Issue Tracking Third Party Advisory
- security.access.redhat.com Third Party Advisory