Security mailing lists by PureSourceCode

GHSA-5478-v2w6-c6q7

HIGHwithdrawn / rejected

Duplicate Advisory: Keras arbitrary code execution vulnerability

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-48g7-3x6r-xfhp. This link is maintained to preserve external references.

Original 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.

Published
11 Mar 2025
Last modified
11 Mar 2025
Weakness
CWE-94
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI keras < 3.9.0 3.9.0

References

History

  • 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.