# CVE-2024-3660: PYSEC-2026-369 - Keras code injection vulnerability

Source: https://junglewise.ai/threats/cve-2024-3660-keras-code-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-29  
License: CC BY 4.0 with a link back

CVE-2024-3660 · Severity: low · CVSS 3.1 · Published 2026-06-29

Keras code injection vulnerability

Technologies: [keras (PyPI)](https://junglewise.ai/threats/technologies/keras). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-3660 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-3660 being exploited in the wild.

**How severe is CVE-2024-3660?** Low severity, with a CVSS score of 3.1, published 29 June 2026.

**Which products and versions are affected?** keras (PyPI) ECOSYSTEM:introduced=0,fixed=2.13.1rc0.

**Is there a fix for CVE-2024-3660?** Yes. keras (PyPI): upgrade to 2.13.1rc0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-3660?** Check whether you run keras (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- keras (PyPI): upgrade to 2.13.1rc0 or later

  ```sh
  pip install "keras>=2.13.1rc0"
  ```


## Affected products

- keras (PyPI) ECOSYSTEM:introduced=0,fixed=2.13.1rc0

## Identifiers

- CVE-2024-3660
- GHSA-x4wf-678h-2pmq
- PYSEC-2026-369

## Related threats

- [Keras model loading denial of service via HDF5 shape bombs](https://junglewise.ai/threats/cve-2026-12570-keras-model-loading-denial-of-service-via-hdf5-shape-bombs)
- [Keras HDF5 arbitrary file disclosure via ExternalLinks](https://junglewise.ai/threats/cve-2026-9335-keras-hdf5-arbitrary-file-disclosure-via-externallinks)
- [Keras unsafe deserialization in TorchModuleWrapper](https://junglewise.ai/threats/cve-2026-12484-keras-unsafe-deserialization-in-torchmodulewrapper)
- [Keras path traversal via symlink in filter_safe_tarinfos](https://junglewise.ai/threats/cve-2026-12482-keras-path-traversal-via-symlink-in-filter-safe-tarinfos)
- [Keras Team Keras arbitrary code execution in Lambda layer](https://junglewise.ai/threats/cve-2026-12481-keras-team-keras-arbitrary-code-execution-in-lambda-layer)
