CVE-2025-1550 Affecting keras package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-KERAS-9403857
  • published13 Mar 2025
  • disclosed11 Mar 2025

Introduced: 11 Mar 2025

NewCVE-2025-1550  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:20.04 keras.

NVD Description

Note: Versions mentioned in the description apply only to the upstream keras package and not the keras package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.