CVE-2025-1550

NameCVE-2025-1550
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
keras (PTS)bullseye2.3.1+dfsg-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
kerassource(unstable)(not affected)

Notes

- keras <not-affected> (Vulnerable code introduced later)
https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp
https://github.com/keras-team/keras/pull/20751
When fixing this issue make sure to not open up CVE-2025-8747.

Search for package or bug name: Reporting problems