- Veröffentlicht
- 19.09.2025 10:16
- Zuletzt geändert
- 19.11.2026
- EPSS (30 Tage)
- 0.2 %
- CVSS-Vektor
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Beschreibung
Originaltext der Quelle, nicht übersetzt.
The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True.
One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary code to be executed.
This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives.
Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility.
Status beim Hersteller
Red Hat stuft seine Produktlinien ein: 1 betroffen, 2 behoben, 2 nicht betroffen.
Red Hat OpenShift AI (RHOAI)
Betroffenwird nicht behoben
rhoai/odh-modelmesh-runtime-adapter-rhel8
Nicht betroffen (2)
Red Hat OpenShift AI 2.22Nicht betroffenverwundbarer Code nicht enthaltenrhoai
Red Hat OpenShift AI 2.25Nicht betroffenverwundbarer Code nicht enthaltenrhoai
Weitere betroffene Pakete (8)
Azure Linux:3keras3.3.3-4AZL-67505
CVEKeras-team/Keraskein Fix bekanntCVE-2025-9905
Debian:11keraskein Fix bekanntDEBIAN-CVE-2025-9905
NVDkeras:keras3.0.0 → 3.11.3CVE-2025-9905
PyPIkeras3.0.0 → 3.11.3GHSA-36rr-ww3j-vrjv
PyPIkeras3.0.0 → 3.11.3PYSEC-2025-123
Ubuntu:18.04:LTSkeraskein Fix bekanntUBUNTU-CVE-2025-9905
Ubuntu:20.04:LTSkeraskein Fix bekanntUBUNTU-CVE-2025-9905
Empfohlene Prüfung
- Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
- Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
- Erreichbarkeit beachten: Der Angriffsweg (Lokal · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.
Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.
Referenzen
- github.com/keras-team/keras/pull/21602
- github.com/keras-team/keras/security/advisories/GHSA-36rr-ww3j-vrjv
- nvd.nist.gov/vuln/detail/CVE-2025-9905
- security-tracker.debian.org/tracker/CVE-2025-9905
- github.com/keras-team/keras
- github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-123.yaml
- ubuntu.com/security/CVE-2025-9905
- www.cve.org/CVERecord
- security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-9905.json
- access.redhat.com/security/cve/CVE-2025-9905
- bugzilla.redhat.com/show_bug.cgi