Intel

AIKIDO-2025-10136

keras is vulnerable to Unsafe Deserialization

CVE-2025-1550Published Mar 6, 2025
March 6, 2025

75

CVE Score

High

Unsafe Deserialization

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.

How do I fix this?

Upgrade the keras library to the patch version.

Who does this affect?

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

Package

Versions

3.0.0 - 3.8.0

Fixed in 3.9.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea