CVE-2025-8747
Keras vulnerability
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
Keras. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Keras runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- jfrog.com/blog/keras-safe_mode-bypass-vulnerability/ · Third Party Advisory
- github.com/keras-team/keras/pull/21429
- github.com/keras-team/keras/security/advisories/GHSA-c9rc-mg46-23w3
- nvd.nist.gov/vuln/detail/CVE-2025-8747
- github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858
- jfrog.com/blog/keras-safe_mode-bypass-vulnerability
- github.com/advisories/GHSA-c9rc-mg46-23w3
- github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-75.yaml
- nvd.nist.gov/vuln/detail/CVE-2025-8747
- cve.org/CVERecord?id=CVE-2025-8747
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.