Intel

AIKIDO-2025-10136

keras is vulnerable to Unsafe Deserialization

Unsafe DeserializationCVE-2025-1550 Published Mar 6, 2025

75

High Risk

This Affects:

PYTHONkeras
3.0.0 - 3.8.0
Fixed in 3.9.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to unsafe deserialization due to the use of numpy.load with allow_pickle=True when loading NPZ files. Since this function relies on pickle for deserialization, it poses a security risk when handling untrusted data. An attacker could exploit this by crafting a malicious model file, potentially leading to arbitrary code execution when unsuspecting users load the model in keras.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

keras is vulnerable to Unsafe Deserialization in versions 3.0.0 - 3.8.0.

How to fix this

Upgrade the keras library to the patch version.