CVE-2025-8747 Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
HighCVSS 8.6
EPSS 0.12%
- Published
- Updated
- Exploit status
- No public exploit known
Description
A safe mode bypass vulnerability in the Model.load_model method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted .keras model archive.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | >= 3.0.0, < 3.11.0 | 3.11.0 |
| pypi keras(PyPI) | = 3.0.0 | No fix listed |
| pypi keras(PyPI) | = 3.0.1 | No fix listed |
| pypi keras(PyPI) | = 3.0.2 | No fix listed |
| pypi keras(PyPI) | = 3.0.3 | No fix listed |
| pypi keras(PyPI) | = 3.0.4 | No fix listed |
| pypi keras(PyPI) | = 3.0.5 | No fix listed |
| pypi keras(PyPI) | = 3.1.0 | No fix listed |
| pypi keras(PyPI) | = 3.1.1 | No fix listed |
| pypi keras(PyPI) | = 3.10.0 | No fix listed |
| pypi keras(PyPI) | = 3.2.0 | No fix listed |
| pypi keras(PyPI) | = 3.2.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.0 | No fix listed |
| pypi keras(PyPI) | = 3.3.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.2 | No fix listed |
| pypi keras(PyPI) | = 3.3.3 | No fix listed |
| pypi keras(PyPI) | = 3.4.0 | No fix listed |
| pypi keras(PyPI) | = 3.4.1 | No fix listed |
| pypi keras(PyPI) | = 3.5.0 | No fix listed |
| pypi keras(PyPI) | = 3.6.0 | No fix listed |
| pypi keras(PyPI) | = 3.7.0 | No fix listed |
| pypi keras(PyPI) | = 3.8.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.1 | No fix listed |
| pypi keras(PyPI) | = 3.9.2 | No fix listed |
Show 4 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | All versions | No fix listed |
| azure linux keras(Azure Linux:3.0) | < 3.3.3-3 | 3.3.3-3 |
| Google Keras | >= 3.0.0, <= 3.10.0 | No fix listed |
| Keras | >= 3.0.0, <= 3.10.0 | No fix listed |
References
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch
- github.com patch
- github.com product
- github.com
- jfrog.com exploit third-party-advisory vendor-advisory
- github.com vendor-advisory
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory