Description
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 model file utilizing HDF5 external dataset references.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Keras | 3.0.0 – < 3.13.1 | 3.13.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | keras | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | keras | No fix yet | — |
| Ubuntu 18.04 LTS | keras | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | keras | 3.3.3-7 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | keras | >= 3.13.0, < 3.13.2 | 3.13.2 | GHSA-3m4q-jmj6-r34q |
| PyPI | keras | >= 3.0.0, < 3.12.1 | 3.12.1 | GHSA-3m4q-jmj6-r34q |
| PyPI | keras | >= 3.0.0, < 3.12.1 · >= 3.13.0, < 3.13.2 | 3.12.1, 3.13.2 | PYSEC-2026-2546 |