keras
PyPI19 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting keraspage 1 of 1
- CVE-2024-3660CRITICALCVSS 9.8EG 9.8✓ Fixed in 2.13.1rc02024-04-16
vulnerable: 0.2.0 ... 2.9.0rc2 (76 versions)
A arbitrary code injection vulnerability in TensorFlow's Keras framework (<2.13) allows attackers to execute arbitrary code with the same permissions as the application using a model that allow arbitrary code irrespective of the applicatio…
- CVE-2024-55459MEDIUMCVSS 6.5EG 6.52025-01-08
vulnerable: 0.2.0 ... 3.7.0 (103 versions)
An issue in keras 3.7.0 allows attackers to write arbitrary files to the user's machine via downloading a crafted tar file through the get_file function.
- CVE-2025-12058MEDIUMCVSS 5.9EG 5.9✓ Fixed in 3.12.02025-10-29
vulnerable: 0.2.0 ... 3.9.2 (112 versions)
The Keras.Model.load_model method, including when executed with the intended security mitigation safe_mode=True, is vulnerable to arbitrary local file loading and Server-Side Request Forgery (SSRF). This vulnerability stems from the way …
- CVE-2025-12060HIGHCVSS 8.9EG 8.9✓ Fixed in 3.12.02025-10-30
vulnerable: 0.2.0 ... 3.9.2 (112 versions)
The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path traversal attack. The utility uses Python's tarfile.extractall function without the filter="data" feature. A remote att…
- CVE-2025-1550CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.8.02025-03-11
vulnerable: 3.0.0 ... 3.7.0 (19 versions)
The Keras Model.load_model function permits arbitrary code execution, even with safe_mode=True, through a manually constructed, malicious .keras archive. By altering the config.json file within the archive, an attacker can specify arbitrar…
- CVE-2025-49655CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.11.32025-10-17
vulnerable: 3.11.0, 3.11.1, 3.11.2
Deserialization of untrusted data can occur in versions of the Keras framework running versions 3.11.0 up to but not including 3.11.3, enabling a maliciously uploaded Keras file containing a TorchModuleWrapper class to run arbitrary code …
- CVE-2025-8747HIGHCVSS 7.8EG 7.8✓ Fixed in 3.11.02025-08-11
vulnerable: 3.0.0 ... 3.9.2 (24 versions)
A safe mode bypass vulnerability in the `Model.load_model` method in Keras versions 3.0.0 through 3.10.0 allows an attacker to achieve arbitrary code execution by convincing a user to load a specially crafted `.keras` model archive.
- CVE-2025-9905HIGHCVSS 7.3EG 7.3✓ Fixed in 3.11.32025-09-19
vulnerable: 3.0.0 ... 3.9.2 (27 versions)
The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .h5/.hdf5 model archive that, when loaded via Model.load_model, will trigger arbitrary …
- CVE-2025-9906HIGHCVSS 7.3EG 7.3✓ Fixed in 3.11.02025-09-19
vulnerable: 0.2.0 ... 3.9.2 (108 versions)
The Keras Model.load_model method can be exploited to achieve arbitrary code execution, even with safe_mode=True. One can create a specially crafted .keras model archive that, when loaded via Model.load_model, will trigger arbitrary cod…
- CVE-2026-0897HIGHCVSS 7.5EG 7.5✓ Fixed in 3.13.12026-01-15
vulnerable: 3.0.0 ... 3.9.2 (33 versions)
Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 through 3.13.0 on all platforms allows a remote attacker to cause a Denial of Service (DoS) through memory exhaustion and…
- CVE-2026-11816HIGHCVSS 8.1EG 8.1✓ Fixed in 3.14.02026-06-11
vulnerable: 0.2.0 ... 3.9.2 (119 versions)
Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive me…
- CVE-2026-12479MEDIUMCVSS 6.1EG 6.1✓ Fixed in 3.15.02026-06-22
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
A path traversal vulnerability exists in keras-team/keras version 3.14.0, specifically in the `DiskIOStore.make` method within the Keras 3 model saving and loading library. This vulnerability arises from the improper handling of user-provi…
- CVE-2026-12480MEDIUMCVSS 5.5EG 5.5✓ Fixed in 3.15.02026-07-01
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
Keras versions up to and including 3.13.2 are vulnerable to an arbitrary HDF5 file read due to an incomplete fix for CVE-2026-1669. The vulnerability resides in the `H5IOStore._verify_dataset()` and `file_editor.py` methods, which fail to …
- CVE-2026-12481CRITICALCVSS 9.8EG 9.8✓ Fixed in 3.15.02026-07-03
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deserialization in the `Lambda` layer. Specifically, the `_raise_for_lambda_deserialization()` function fails to enforce the…
- CVE-2026-12482MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.15.02026-07-14
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
A vulnerability in keras-team/keras version 3.12.0 allows an attacker to craft a malicious tar archive that bypasses the `filter_safe_tarinfos` validation in `keras/src/utils/file_utils.py`. Specifically, symlink entries are not subjected …
- CVE-2026-12484HIGHCVSS 7.8EG 7.8✓ Fixed in 3.15.02026-07-19
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
A vulnerability in keras-team/keras version 3.15.0 allows unsafe deserialization of attacker-controlled PyTorch pickle data through the public `keras.layers.TorchModuleWrapper.from_config` method. This method invokes `torch.load(..., weigh…
- CVE-2026-1462HIGHCVSS 7.8EG 7.8✓ Fixed in 3.13.22026-04-13
vulnerable: 0.2.0 ... 3.9.2 (118 versions)
A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow SavedModels to be loaded during deserialization of `.keras` models, even when `safe_mode=True`. This bypasses the securi…
- CVE-2026-1669HIGHCVSS 7.5EG 7.5✓ Fixed in 3.13.22026-02-11
vulnerable: 3.0.0 ... 3.9.2 (31 versions)
Arbitrary file read in the model loading mechanism (HDF5 integration) in Keras versions 3.0.0 through 3.13.1 on all supported platforms allows a remote attacker to read local files and disclose sensitive information via a crafted .keras mo…
- CVE-2026-9335MEDIUMCVSS 6.5EG 6.5✓ Fixed in 3.15.02026-08-02
vulnerable: 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.14.1
A vulnerability in keras-team/keras versions <= 3.14.0 allows arbitrary local HDF5 file content disclosure due to improper handling of HDF5 ExternalLinks. The `KerasFileEditor` and `keras.saving.load_weights` functions bypass the `safe_get…
Check whether keras is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for keras CVEs against the assets you own.
Start Free Scan →