Search for packages
| purl | pkg:pypi/keras@3.3.2 |
| Next non-vulnerable version | None. |
| Latest non-vulnerable version | None. |
| Risk |
| Vulnerability | Summary | Fixed by |
|---|---|---|
|
VCID-1xj9-1kng-8ua4
Aliases: CVE-2026-0897 PYSEC-2026-73 |
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 a crash of the Python interpreter via a crafted .keras archive containing a valid model.weights.h5 file whose dataset declares an extremely large shape. |
Affected by 1 other vulnerability. |
|
VCID-dy5p-938j-d7fr
Aliases: CVE-2025-9905 GHSA-36rr-ww3j-vrjv PYSEC-2025-123 |
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 code to be executed. This is achieved by crafting a special .h5 archive file that uses the Lambda layer feature of keras which allows arbitrary Python code in the form of pickled code. The vulnerability comes from the fact that the safe_mode=True option is not honored when reading .h5 archives. Note that the .h5/.hdf5 format is a legacy format supported by Keras 3 for backwards compatibility. |
Affected by 1 other vulnerability. |
|
VCID-gu8d-jjtb-zuau
Aliases: CVE-2025-1550 PYSEC-2025-122 |
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 arbitrary Python modules and functions, along with their arguments, to be loaded and executed during model loading. |
Affected by 2 other vulnerabilities. |
| Vulnerability | Summary | Aliases |
|---|---|---|
| This package is not known to fix vulnerabilities. | ||
| Date | Actor | Action | Vulnerability | Source | VulnerableCode Version |
|---|---|---|---|---|---|
| 2026-06-02T04:23:45.347684+00:00 | Pypa Importer | Affected by | VCID-1xj9-1kng-8ua4 | https://github.com/pypa/advisory-database/blob/main/vulns/keras/PYSEC-2026-73.yaml | 38.6.0 |
| 2026-06-02T04:23:20.357468+00:00 | Pypa Importer | Affected by | VCID-dy5p-938j-d7fr | https://github.com/pypa/advisory-database/blob/main/vulns/keras/PYSEC-2025-123.yaml | 38.6.0 |
| 2026-06-02T04:22:51.609314+00:00 | Pypa Importer | Affected by | VCID-gu8d-jjtb-zuau | https://github.com/pypa/advisory-database/blob/main/vulns/keras/PYSEC-2025-122.yaml | 38.6.0 |