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-3vulnerable

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
kerassource(unstable)(unfixed)

Notes

[bullseye] - keras <postponed> (Minor issue; few r-depends; can be fixed in next update)
https://github.com/keras-team/keras/security/advisories/GHSA-48g7-3x6r-xfhp
https://github.com/keras-team/keras/pull/20751

Search for package or bug name: Reporting problems