# CVE-2025-1550: Arbitrary Code Execution via Crafted Keras Config for Model Loading

- Severity: High 7.3 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- 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): 2.88%, higher than 88% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-11T08:12:34.974Z
- Modified: 2026-09-10T03:50:56.790Z
- Also known as: GHSA-48g7-3x6r-xfhp, PYSEC-2025-122
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Google

## Description

The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading.

(As written by CVE List.)

## Affected

- Google Keras: from 3.0.0 before 3.8.0
- keras (PyPI): from 3.0.0 before 3.9.0; from 3.0.0 before 3.8.0
- keras keras: from 3.0.0 before 3.8.0

## Every score

- Google: CVSS:4.0 7.3 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://towerofhanoi.it/writeups/cve-2025-1550/> (exploit, evidence, third-party-advisory)
- <https://github.com/keras-team/keras/pull/20751> (fix, issue-tracking, patch, web)
- <https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1550> (advisory)
- <https://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903> (web)
- <https://github.com/keras-team/keras> (package)
- <https://github.com/keras-team/keras/releases/tag/v3.9.0> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-122.yaml> (web)
- <https://towerofhanoi.it/writeups/cve-2025-1550> (web)
- <https://github.com/advisories/GHSA-48g7-3x6r-xfhp> (advisory)

## Sources

- CVE List: [CVE-2025-1550](https://www.cve.org/CVERecord?id=CVE-2025-1550), CVE Terms of Use, modified 2025-07-24
- GitHub Advisory Database: [GHSA-48g7-3x6r-xfhp](https://github.com/advisories/GHSA-48g7-3x6r-xfhp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-1550](https://nvd.nist.gov/vuln/detail/CVE-2025-1550), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-122](https://osv.dev/vulnerability/PYSEC-2025-122), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-1550 · Whole record: https://cve.day/CVE-2025-1550.json · Rebuilt by cve.day 2026-11-25T22:58:55.106Z
