Safe Mode Bypass in keras-team/keras (keras-team keras-team/keras)
En bref
- Source
- NVD
- EPSS
- EPSS 0.40 % · centile 35 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- @huntr_ai
- Statut NVD
- Modified
Rechercher sur…
Description
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.
Faiblesses (CWE)
- CWE-502 — Désérialisation de données non fiables
Références
- https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c
- https://github.com/keras-team/keras/commit/b6773d3decaef1b05d8e794458e148cb362f163f
- https://access.redhat.com/security/cve/CVE-2026-1462
- https://bugzilla.redhat.com/show_bug.cgi?id=2457856
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1462.json
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/errata/RHSA-2026:37275
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | @huntr_ai |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat-SADP |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) |
| CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · security@huntr.dev (Secondary) |
Avis
- GHSA-4f3f-g24h-fr8m — Keras has an untrusted deserialization vulnerability
- PYSEC-2026-2547 — Keras has an untrusted deserialization vulnerability
Références européennes
- ENISA EUVD · EUVD-2026-21970
- GCVE · GCVE-0-2026-1462
Avis du CERT-FR
- CERTFR-2026-AVI-0556 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:keras:keras:3.13.0:*:*:*:*:*:*:*cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*≥ 2.25 < 2.25.7
Produits affectés
| Produit | Versions |
|---|---|
| keras-team · keras-team/keras | affected unspecified < 3.13.2 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |