Arbitrary Code Execution via Crafted Keras Config for Model Loading
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Keras | unaffected |
|
No data.
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2025-7406 | Arbitrary Code Execution via Crafted Keras Config for Model Loading |
Github GHSA |
GHSA-48g7-3x6r-xfhp | Arbitrary Code Execution via Crafted Keras Config for Model Loading |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: 2.6% (2.604% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Keras
Keras keras |
|
| CPEs | cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Keras
Keras keras |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Arbitrary Code Execution via Crafted Keras Config for Model Loading | |
| Weaknesses | CWE-94 | |
| References |
| |
| Metrics |
cvssV4_0
|