Security mailing lists by PureSourceCode

CVE-2025-1550

HIGH 7.3CVSS 4.0

Arbitrary Code Execution via Crafted Keras Config for Model Loading

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.

Published
11 Mar 2025
Last modified
10 Sep 2026
Assigned by
cve-coordination@google.com
NVD status
Analyzed
Weakness
CWE-94
Also known as
GHSA-48g7-3x6r-xfhpPYSEC-2025-122
Sources
NVDJSONOSV GHSA-48g7-3x6r-xfhpJSONOSV PYSEC-2025-122JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cve-coordination@google.com (Secondary) CVSS 4.0 HIGH 7.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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 nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD keras keras
cpe:2.3:a:keras:keras:*:*:*:*:*:*:*:*
>= 3.0.0, < 3.8.0 3.8.0
OSV PyPI keras >= 3.0.0, < 3.9.0 3.9.0
OSV PyPI keras >= 3.0.0, < 3.8.0 3.8.0

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 11 Mar 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Mar 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Mar 2025)
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.