Skip to content
MediumVulnerability

CVE-2026-12570: keras-team/keras denial of service via malicious .keras model files

Identifier
CVE-2026-12570
Published
Record updated
View JSON
Affected
  • keras < 3.15.0
Fixed in
3.15.0
  • released June 24, 2026, 47 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

CVE-2026-12570 affects keras-team/keras versions up to and including 3.15.0. A crafted .keras file loaded through keras.models.load_model() can make H5IOStore.__getitem__ in keras/src/saving/saving_lib.py allocate memory without bound, because dataset shape and size are not validated. The resulting out-of-memory condition terminates the process with exit code 137, and the flaw bypasses the earlier fix for CVE-2026-0897.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.