PyPI (Python)Worst: Critical27 advisories

keras: known vulnerabilities

keras has 27 reviewed security advisories in the GitHub Advisory Database — 2 critical, 18 high, 6 moderate, 1 low. The most recent was published 2026-08-10. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the keras versions running across your servers, containers and images, and ranks what to patch first.

How to fix keras

Upgrade keras to a release at or above the fixed version shown for each advisory below. For PyPI (Python):

pip install --upgrade keras (pin keras>=3.15.0)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (27)

Keras model loading is vulnerable to denial of service through HDF5 shape bombs Moderate 5.5 CWE-770 — Affected: before 3.15.0. Fixed in 3.15.0. Published 2026-08-10. GHSA-74m6-m3xx-3vmj · CVE-2026-12570
Keras: HDF5 links can disclose local file contents Moderate 6.5 CWE-22 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-08-02. GHSA-m8wh-29wm-52mv · CVE-2026-9335
Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data High 7.8 CWE-502 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-07-19. GHSA-v2w2-w228-c444 · CVE-2026-12484
Keras: tar extraction permits symlink-based path traversal Low 3.1 CWE-22 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-07-14. GHSA-58hv-7753-xmfq · CVE-2026-12482
Keras: Lambda deserialization can bypass safe mode and execute code High 8.8 CWE-502 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-07-03. GHSA-5gwj-m78q-7pq3 · CVE-2026-12481
Keras: HDF5 virtual datasets can disclose local files Moderate 5.5 CWE-73 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-07-01. GHSA-26c4-7vv6-867j · CVE-2026-12480
Keras: DiskIOStore permits path traversal through crafted layer names Moderate 6.1 CWE-22 — Affected: from 3.13.0 up to 3.15.0. Fixed in 3.15.0. Published 2026-06-22. GHSA-gh82-f9x8-5frx · CVE-2026-12479
Keras archive extraction utilities allow path traversal and arbitrary file writes High 8.1 CWE-22 — Affected: before 3.14.0. Fixed in 3.14.0. Published 2026-06-11. GHSA-hqp4-2352-xf5r · CVE-2026-11816
Keras vulnerable to DoS via Malicious .keras Model (HDF5 Shape Bomb Causes Petabyte Allocation in KerasFileEditor) High CWE-770 — Affected: from 3.13.0 up to 3.13.2. Fixed in 3.13.2. Published 2026-05-06. GHSA-mgx6-5cf9-rr43 · CVE-2026-0897
Keras has an untrusted deserialization vulnerability High 8.8 CWE-502 — Affected: before 3.13.2. Fixed in 3.13.2. Published 2026-04-13. GHSA-4f3f-g24h-fr8m · CVE-2026-1462
Keras has a Local File Disclosure via HDF5 External Storage During Keras Weight Loading High 7.1 CWE-200 CWE-73 — Affected: from 3.0.0 up to 3.12.1. Fixed in 3.12.1. Published 2026-02-18. GHSA-3m4q-jmj6-r34q · CVE-2026-1669
Duplicate Advisory: Keras vulnerable to arbitrary file read in the model loading mechanism (HDF5 integration) High CWE-73 — Affected: 3.0.0 through 3.13.1. No fixed release is listed. Published 2026-02-11. GHSA-gfmx-qqqh-f38q
Duplicate Advisory: Google Keras Allocates Resources Without Limits or Throttling in the HDF5 weight loading component High CWE-770 — Affected: from 3.13.0 up to 3.13.2. Fixed in 3.13.2. Published 2026-01-15. GHSA-xfhx-r7ww-5995
Duplicate Advisory: Keras keras.utils.get_file API is vulnerable to a path traversal attack High 8.0 CWE-22 — Affected: before 3.12.0. Fixed in 3.12.0. Published 2025-11-28. GHSA-9g7v-8wxv-mwxp · CVE-2025-12638
Duplicate Advisory: Keras keras.utils.get_file API is vulnerable to a path traversal attack High CWE-22 — Affected: before 3.12.0. Fixed in 3.12.0. Published 2025-10-30. GHSA-28jp-44vh-q42h
Keras is vulnerable to arbitrary local file loading and Server-Side Request Forgery Moderate CWE-502 CWE-918 — Affected: before 3.12.0. Fixed in 3.12.0. Published 2025-10-29. GHSA-mq84-hjqx-cwf2 · CVE-2025-12058
Keras framework vulnerable to deserialization of untrusted data Critical 9.8 CWE-502 — Affected: from 3.11.0 up to 3.11.3. Fixed in 3.11.3. Published 2025-10-17. GHSA-cvhh-q5g5-qprp · CVE-2025-49655
Keras is vulnerable to Deserialization of Untrusted Data High 7.3 CWE-502 — Affected: before 3.11.0. Fixed in 3.11.0. Published 2025-09-19. GHSA-36fq-jgmw-4r9c · CVE-2025-9906
The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded. High CWE-913 — Affected: from 3.0.0 up to 3.11.3. Fixed in 3.11.3. Published 2025-09-19. GHSA-36rr-ww3j-vrjv · CVE-2025-9905
Duplicate Advisory: The Keras `Model.load_model` method **silently** ignores `safe_mode=True` and allows arbitrary code execution when a `.h5`/`.hdf5` file is loaded. High CWE-913 — Affected: from 3.0.0 up to 3.11.3. Fixed in 3.11.3. Published 2025-09-19. GHSA-77wq-646f-jrm2
Keras vulnerable to CVE-2025-1550 bypass via reuse of internal functionality High 8.8 CWE-502 — Affected: from 3.0.0 up to 3.11.0. Fixed in 3.11.0. Published 2025-08-12. GHSA-c9rc-mg46-23w3 · CVE-2025-8747
Duplicate Advisory: Keras safe mode bypass vulnerability High CWE-502 — Affected: from 3.0.0 up to 3.11.0. Fixed in 3.11.0. Published 2025-08-11. GHSA-pwq7-2gvj-vg9v
Arbitrary Code Execution via Crafted Keras Config for Model Loading High CWE-94 — Affected: from 3.0.0 up to 3.9.0. Fixed in 3.9.0. Published 2025-03-11. GHSA-48g7-3x6r-xfhp · CVE-2025-1550
Duplicate Advisory: Keras arbitrary code execution vulnerability High CWE-94 — Affected: before 3.9.0. Fixed in 3.9.0. Published 2025-03-11. GHSA-5478-v2w6-c6q7
keras Path Traversal vulnerability Moderate CWE-22 — Affected: up to and including 3.7.0. No fixed release is listed. Published 2025-01-08. GHSA-cjgq-5qmw-rcj6 · CVE-2024-55459
Keras code injection vulnerability Critical 9.8 CWE-94 — Affected: before 2.13.1rc0. Fixed in 2.13.1rc0. Published 2024-04-16. GHSA-x4wf-678h-2pmq · CVE-2024-3660

Find keras across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.