# CVE-2025-8747: Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.

- Severity: High 8.6 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-11T07:21:16.619Z
- Modified: 2026-09-10T03:50:26.914Z
- Also known as: GHSA-c9rc-mg46-23w3, PYSEC-2025-75
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Google

## 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.

(As written by CVE List.)

## Affected

- Google Keras: from 3.0.0 up to 3.10.0
- keras (PyPI): from 3.0.0 before 3.11.0
- keras keras: from 3.0.0 up to 3.10.0

## Every score

- Google: CVSS:4.0 8.6 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:A`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability/> (exploit, advisory, third-party-advisory)
- <https://github.com/keras-team/keras/pull/21429> (issue-tracking, patch, report, web)
- <https://github.com/keras-team/keras/security/advisories/GHSA-c9rc-mg46-23w3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8747> (advisory)
- <https://github.com/keras-team/keras/commit/713172ab56b864e59e2aa79b1a51b0e728bba858> (web)
- <https://github.com/keras-team/keras> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-75.yaml> (web)
- <https://jfrog.com/blog/keras-safe_mode-bypass-vulnerability> (web)
- <https://github.com/advisories/GHSA-c9rc-mg46-23w3> (advisory)

## Sources

- CVE List: [CVE-2025-8747](https://www.cve.org/CVERecord?id=CVE-2025-8747), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-c9rc-mg46-23w3](https://github.com/advisories/GHSA-c9rc-mg46-23w3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-8747](https://nvd.nist.gov/vuln/detail/CVE-2025-8747), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-75](https://osv.dev/vulnerability/PYSEC-2025-75), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-8747 · Whole record: https://cve.day/CVE-2025-8747.json · Rebuilt by cve.day 2026-11-25T22:59:02.266Z
