Intel

AIKIDO-2025-10615

tf-keras is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted Data Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Sep 9, 2025

88

High Risk

This Affects:

Pythontf-keras
2.15.0 - 2.20.0
Fixed in 2.20.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Arbitrary Code Execution due to unsafe deserialization via np.load with allow_pickle=True enabled. Attackers can exploit this by crafting a malicious file containing pickled payloads, which execute arbitrary code during deserialization when the file is processed by the vulnerable class. It could lead to full system compromise if the application processes untrusted files.

Who does this affect?

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

Background info

tf-keras is vulnerable to Deserialization of Untrusted Data in versions 2.15.0 - 2.20.0.

How to fix this

Upgrade the tf-keras library to the patch version.