Security mailing lists by PureSourceCode

CVE-2026-1462

HIGH 7.8CVSS 3.1

Keras has an untrusted deserialization vulnerability

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.

Published
13 Apr 2026
Last modified
10 Sep 2026
Assigned by
security@huntr.dev
NVD status
Modified
Weakness
CWE-502
Also known as
GHSA-4f3f-g24h-fr8mPYSEC-2026-2547
Sources
NVDJSONOSV GHSA-4f3f-g24h-fr8mJSONOSV PYSEC-2026-2547JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD security@huntr.dev (Secondary) CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.0 HIGH 8.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD keras keras
cpe:2.3:a:keras:keras:3.13.0:*:*:*:*:*:*:*
= 3.13.0
NVD redhat openshift_ai
cpe:2.3:a:redhat:openshift_ai:*:*:*:*:*:*:*:*
>= 2.25, < 2.25.7 2.25.7
OSV PyPI keras < 3.13.2 3.13.2

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 Apr 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.