CVE-2024-3660 Arbitrary code injection vulnerability in Keras framework < 2.13
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2024-3660?
CVE-2024-3660 is a critical vulnerability in tensorflow keras, published on 16 Apr 2024.
Official description
A arbitrary code injection vulnerability in TensorFlow's Keras framework (<2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the application.
Weakness: CWE-94
Which versions are affected by CVE-2024-3660?
3 open source packages ship an affected version, including keras. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
keras PyPI | All versions | 2.13.1rc0 |
keras PyPI | All versions | 2.13.1rc0 |
keras PyPI | All versions | 2.13.1rc0 |
Products include Keras Keras.
How do I fix CVE-2024-3660?
Upgrade keras to 2.13.1rc0 or later.
Is CVE-2024-3660 being exploited?
There is no known exploitation of CVE-2024-3660 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in tensorflow keras
- CVE-2026-12481 Deserialization of Untrusted Data in keras-team/keras
- CVE-2026-1462 Safe Mode Bypass in keras-team/keras
- CVE-2025-9906 Arbitrary Code execution in Keras Safe Mode
- CVE-2025-8747 Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
- CVE-2026-11816 Path Traversal in keras-team/keras
Sources
Also known as AZL-67629, DEBIAN-CVE-2024-3660, GHSA-x4wf-678h-2pmq, PYSEC-2026-369, UBUNTU-CVE-2024-3660.