keras: known vulnerabilities and the safe version

PyPI20 records

The version to be on

Version 3.15.0 or later fixes every vulnerability on this page that has a recorded fix.

Upgrade keras with pip

pip install --upgrade "keras>=3.15.0"
pip show keras | grep Version

Pin it in requirements.txt

keras>=3.15.0

Check the release notes before a large jump in version. Newer vulnerabilities may have been found since this page was updated.

Watch keras

Get an email only when keras has a new vulnerability record. Unsubscribe with one click.

Badge for your README

Shows the number of known critical and high vulnerabilities in keras and the version that fixes them. It updates by itself.

SecurityElites AI vulnerability status for keras

Markdown

[![SecurityElites AI vulnerability status](https://securityelites.com/ai-vulnerabilities/package/keras/badge/)](https://securityelites.com/ai-vulnerabilities/package/keras/)

All records

  • Keras model loading is vulnerable to denial of service through HDF5 shape bombsUnknown · CVE-2026-12570 · fixed in 3.15.0 · 10 Aug 2026
  • Keras: HDF5 links can disclose local file contentsUnknown · CVE-2026-9335 · fixed in 3.15.0 · 2 Aug 2026
  • Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle dataUnknown · CVE-2026-12484 · fixed in 3.15.0 · 20 Jul 2026
  • Keras: tar extraction permits symlink-based path traversalUnknown · CVE-2026-12482 · fixed in 3.15.0 · 14 Jul 2026
  • Keras: Lambda deserialization can bypass safe mode and execute codeUnknown · CVE-2026-12481 · fixed in 3.15.0 · 4 Jul 2026
  • Keras: HDF5 virtual datasets can disclose local filesUnknown · CVE-2026-12480 · fixed in 3.15.0 · 2 Jul 2026
  • Keras: DiskIOStore permits path traversal through crafted layer namesUnknown · CVE-2026-12479 · fixed in 3.15.0 · 23 Jun 2026
  • Keras archive extraction utilities allow path traversal and arbitrary file writesUnknown · CVE-2026-11816 · fixed in 3.14.0 · 11 Jun 2026
  • Keras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFile…Unknown · CVE-2026-0897 · fixed in 3.13.1 · 7 May 2026
  • Keras has an untrusted deserialization vulnerabilityUnknown · CVE-2026-1462 · fixed in 3.13.2 · 13 Apr 2026
  • Keras has a Local File Disclosure via HDF5 External Storage During Keras Weight LoadingUnknown · CVE-2026-1669 · fixed in 3.13.2 · 19 Feb 2026
  • Keras Directory Traversal VulnerabilityUnknown · CVE-2025-12060 · fixed in 3.12.0 · 2 Dec 2025
  • Keras is vulnerable to arbitrary local file loading and Server-Side Request ForgeryUnknown · CVE-2025-12058 · fixed in 3.12.0 · 29 Oct 2025
  • Keras framework vulnerable to deserialization of untrusted dataUnknown · CVE-2025-49655 · fixed in 3.11.3 · 18 Oct 2025
  • The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code executi…Unknown · CVE-2025-9905 · fixed in 3.11.3 · 20 Sep 2025
  • Keras is vulnerable to Deserialization of Untrusted DataUnknown · CVE-2025-9906 · no fix recorded · 19 Sep 2025
  • Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionalityUnknown · CVE-2025-8747 · no fix recorded · 13 Aug 2025
  • Arbitrary Code Execution via Crafted Keras Config for Model LoadingUnknown · CVE-2025-1550 · fixed in 3.8.0 · 12 Mar 2025
  • keras Path Traversal vulnerabilityUnknown · CVE-2024-55459 · no fix recorded · 9 Jan 2025
  • Keras code injection vulnerabilityUnknown · CVE-2024-3660 · fixed in 2.13.1rc0 · 17 Apr 2024