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

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 16-07-2025)
- Next step: Check applicability: affected before 3.8.0 (CNA); fix release not confirmed
- Status: published
- Published: 2025-03-11 · Modified: 2025-07-24
- Aliases: GHSA-48g7-3x6r-xfhp, PYSEC-2025-122, UBUNTU-CVE-2025-1550, CGA-fg2h-9w95-fv4f
- Record: https://cvemate.com/vulnerability/CVE-2025-1550 · JSON: https://cvemate.com/vulnerability/CVE-2025-1550/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.604%, percentile 85.885%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference, exploit-database)

## Affected

- chainguard kubeflow-pipelines-visualization-server (Chainguard): \< 2.4.1-r2
- wolfi kubeflow-pipelines-visualization-server (Wolfi): \< 2.4.1-r2
- ubuntu keras (Ubuntu): All versions (No fix recorded)
- google keras: ≥ 3.0.0, \< 3.8.0
- keras keras: ≥ 3.0.0, \< 3.8.0
- PyPI keras (PyPI): ≥ 3.0.0, \< 3.9.0 \| ≥ 3.0.0, \< 3.8.0

## References

- <https://github.com/keras-team/keras/pull/20751>
- <https://towerofhanoi.it/writeups/cve-2025-1550/>
- <https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1550>
- <https://github.com/keras-team/keras/commit/e67ac8ffd0c883bec68eb65bb52340c7f9d3a903>
- <https://github.com/keras-team/keras>
- <https://github.com/keras-team/keras/releases/tag/v3.9.0>
- <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-122.yaml>
- <https://towerofhanoi.it/writeups/cve-2025-1550>
- <https://github.com/advisories/GHSA-48g7-3x6r-xfhp>
- <https://ubuntu.com/security/CVE-2025-1550>
- <https://www.cve.org/CVERecord?id=CVE-2025-1550>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1550.json>
- <https://pypi.org/project/keras>

---

Data as of 2026-12-05T02:36:11.731Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
