---
title: "CVE-2024-3660: Keras code injection vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-3660/
description: "CVE-2024-3660 (keras (PyPI)): A arbitrary code injection vulnerability in TensorFlow's Keras framework ("
type: vulnerability-record
section: "Security Digest"
date_published: 2024-04-16
date_modified: 2025-02-13
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-3660"
kev: false
cvss: 9.3
epss: 0.01745
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-3660: Keras code injection vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.7% , percentile 78: FIRST’s model estimates a 1.7% chance of exploitation activity in the next 30 days, higher than 78% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes keras (PyPI) < 2.13.1rc0, fixed in 2.13.1rc0 . Check your lockfile, including transitive dependencies.

## What it is

A arbitrary code injection vulnerability in TensorFlow's Keras framework (

## Affected packages

- PyPI `keras` < 2.13.1rc0 → fixed: 2.13.1rc0

## Affected products (CVE record)

- tensorflow keras: < 2.13

## Severity

- CISA-ADP CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.3 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.75% probability of exploitation activity in the next 30 days; percentile 78.

## Sources

- [GitHub Advisory GHSA-x4wf-678h-2pmq](https://github.com/advisories/GHSA-x4wf-678h-2pmq)
- [CVE.org record CVE-2024-3660](https://www.cve.org/CVERecord?id=CVE-2024-3660)
- [NVD entry CVE-2024-3660](https://nvd.nist.gov/vuln/detail/CVE-2024-3660)
- [kb.cert.org](https://kb.cert.org/vuls/id/253266)
- [kb.cert.org](https://www.kb.cert.org/vuls/id/253266)
- [github.com](https://github.com/keras-team/keras/compare/r2.12...r2.13)

---
Source page: https://erroneo.us/security/cve/CVE-2024-3660/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
