keras vulnerabilities

Multi-backend Keras

Registry
PyPI
Latest
3.15.1
License
Apache License 2.0

20 known advisories

The latest version, 3.15.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'keras>=3.15.1'

Is your project on an affected keras?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for keras

  • MediumCVE-2026-12570GHSA-74m6-m3xx-3vmj10 Aug 2026

    Keras model loading is vulnerable to denial of service through HDF5 shape bombs

    Affected
    <3.15.0
    Fixed in
    3.15.0
  • MediumCVE-2026-9335GHSA-m8wh-29wm-52mv2 Aug 2026

    Keras: HDF5 links can disclose local file contents

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • HighCVE-2026-12484GHSA-v2w2-w228-c44419 Jul 2026

    Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • LowCVE-2026-12482GHSA-58hv-7753-xmfq14 Jul 2026

    Keras: tar extraction permits symlink-based path traversal

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • HighCVE-2026-12481GHSA-5gwj-m78q-7pq33 Jul 2026

    Keras: Lambda deserialization can bypass safe mode and execute code

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • MediumCVE-2026-12480GHSA-26c4-7vv6-867j1 Jul 2026

    Keras: HDF5 virtual datasets can disclose local files

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • MediumCVE-2026-12479GHSA-gh82-f9x8-5frx22 Jun 2026

    Keras: DiskIOStore permits path traversal through crafted layer names

    Affected
    <3.12.3 · >=3.13.0 <3.15.0
    Fixed in
    3.12.3, 3.15.0
  • HighCVE-2026-11816GHSA-hqp4-2352-xf5r11 Jun 2026

    Keras archive extraction utilities allow path traversal and arbitrary file writes

    Affected
    <3.14.0
    Fixed in
    3.14.0
  • HighCVE-2026-0897GHSA-mgx6-5cf9-rr436 May 2026

    Keras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFileEditor)

    Affected
    >=3.0.0 <3.12.1 · >=3.13.0 <3.13.2
    Fixed in
    3.12.1, 3.13.2
  • HighCVE-2026-1462GHSA-4f3f-g24h-fr8m13 Apr 2026

    Keras has an untrusted deserialization vulnerability

    Affected
    <3.13.2
    Fixed in
    3.13.2
  • HighCVE-2026-1669GHSA-3m4q-jmj6-r34q18 Feb 2026

    Keras has a Local File Disclosure via HDF5 External Storage During Keras Weight Loading

    Affected
    >=3.13.0 <3.13.2 · >=3.0.0 <3.12.1
    Fixed in
    3.12.1, 3.13.2
  • HighCVE-2025-12060GHSA-hjqc-jx6g-rwp92 Dec 2025

    Keras Directory Traversal Vulnerability

    Affected
    <3.12.0
    Fixed in
    3.12.0
  • MediumCVE-2025-12058GHSA-mq84-hjqx-cwf229 Oct 2025

    Keras is vulnerable to arbitrary local file loading and Server-Side Request Forgery

    Affected
    <3.12.0
    Fixed in
    3.12.0
  • CriticalCVE-2025-49655GHSA-cvhh-q5g5-qprp17 Oct 2025

    Keras framework vulnerable to deserialization of untrusted data

    Affected
    >=3.11.0 <3.11.3
    Fixed in
    3.11.3
  • HighCVE-2025-9905GHSA-36rr-ww3j-vrjv19 Sept 2025

    The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded.

    Affected
    >=3.0.0 <3.11.3
    Fixed in
    3.11.3
  • HighCVE-2025-9906GHSA-36fq-jgmw-4r9c19 Sept 2025

    Keras is vulnerable to Deserialization of Untrusted Data

    Affected
    <3.11.0
    Fixed in
    3.11.0
  • HighCVE-2025-8747GHSA-c9rc-mg46-23w312 Aug 2025

    Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality

    Affected
    >=3.0.0 <3.11.0
    Fixed in
    3.11.0
  • HighCVE-2025-1550GHSA-48g7-3x6r-xfhp11 Mar 2025

    Arbitrary Code Execution via Crafted Keras Config for Model Loading

    Affected
    >=3.0.0 <3.9.0
    Fixed in
    3.9.0
  • MediumCVE-2024-55459GHSA-cjgq-5qmw-rcj68 Jan 2025

    keras Path Traversal vulnerability

    Affected
    <=3.7.0
    Fixed in
    No fix released
  • CriticalCVE-2024-3660GHSA-x4wf-678h-2pmq16 Apr 2024

    Keras code injection vulnerability

    Affected
    <2.13.1rc0
    Fixed in
    2.13.1rc0

Is your keras version vulnerable?

Which of your client projects still run an old keras?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.