GHSA-pwq7-2gvj-vg9v: Duplicate Advisory: Keras safe mode bypass vulnerability
This advisory was withdrawn on Aug 12, 2025. The publisher no longer considers it a valid vulnerability.
Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-c9rc-mg46-23w3. This link is maintained to preserve external references. Original Description A safe mode bypass vulnerability in the Model.loadmodel 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.
Published Aug 11, 2025 · Updated Aug 12, 2025
Affected packages
keras
- Ecosystem
- PyPI
- Affected
- >= 3.0.0, < 3.11.0
- Fixed in
- 3.11.0
- Check
pip show keras
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-c9rc-mg46-23w3. This link is maintained to preserve external references.
Original Description
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-12570
Keras model loading is vulnerable to denial of service through HDF5 shape bombs
medium5.5Aug 10, 2026CVE-2026-9335
Keras: HDF5 links can disclose local file contents
medium6.5Aug 2, 2026CVE-2026-12484
Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data
high7.8Jul 19, 2026CVE-2026-12482
Keras: tar extraction permits symlink-based path traversal
low3.1Jul 14, 2026CVE-2026-12481
Keras: Lambda deserialization can bypass safe mode and execute code
high8.8Jul 3, 2026CVE-2026-12480
Keras: HDF5 virtual datasets can disclose local files
medium5.5Jul 1, 2026
