Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"schema_version": "1.4.0",
"id": "GHSA-4f3f-g24h-fr8m",
"modified": "2026-04-14T23:17:11Z",
"modified": "2026-04-14T23:17:13Z",
"published": "2026-04-13T15:31:42Z",
"aliases": [
"CVE-2026-1462"
],
"summary": "Keras has an untrusted deserialization vulnerability",
"details": "A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.",
"details": "A vulnerability in the `TFSMLayer` class of the `keras` package, in versions 3.0.0 through 3.12.0 and 3.13.0 through 3.13.1, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the security guarantees of `safe_mode` and enables arbitrary attacker-controlled code execution during model inference under the victim's privileges. The issue arises due to the unconditional loading of external SavedModels, serialization of attacker-controlled file paths, and the lack of validation in the `from_config()` method.",
"severity": [
{
"type": "CVSS_V3",
Expand All @@ -25,14 +25,33 @@
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
"introduced": "3.13.0"
},
{
"fixed": "3.13.2"
}
]
}
]
},
{
"package": {
"ecosystem": "PyPI",
"name": "keras"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.12.1"
}
]
}
]
}
Comment on lines 25 to 55
],
"references": [
Expand All @@ -52,6 +71,14 @@
"type": "PACKAGE",
"url": "https://github.com/keras-team/keras"
},
{
"type": "WEB",
"url": "https://github.com/keras-team/keras/releases/tag/v3.12.1"
},
{
"type": "WEB",
"url": "https://github.com/keras-team/keras/commit/f704c887bf459b42769bfc8a9182f838009afddb"
},
Comment on lines +74 to +81
{
"type": "WEB",
"url": "https://huntr.com/bounties/7e78d6f1-6977-4300-b595-e81bdbda331c"
Expand Down