Security mailing lists by PureSourceCode

CVE-2026-9335

MEDIUM 6.5CVSS 3.0

Keras: HDF5 links can disclose local file contents

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_h5_group and safe_get_h5_dataset helpers, which are designed to reject ExternalLinks and SoftLinks. This results in automatic dereferencing of links to external HDF5 files, enabling attackers to disclose sensitive data from the victim's local filesystem. Specifically, KerasFileEditor extracts attributes and datasets from linked files into its internal structures, while keras.saving.load_weights loads weights from linked files into the user's model. This issue can be exploited by providing a malicious .h5, .weights.h5, or .keras file containing ExternalLinks.

Published
2 Aug 2026
Last modified
23 Oct 2026
Assigned by
security@huntr.dev
NVD status
Awaiting Analysis
Weakness
CWE-22
Also known as
GHSA-m8wh-29wm-52mvPYSEC-2026-3633
Sources
NVDJSONOSV GHSA-m8wh-29wm-52mvJSONOSV PYSEC-2026-3633JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@huntr.dev (Secondary) CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
OSV PyPA CVSS 3.0 MEDIUM 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI keras < 3.12.3 3.12.3
OSV PyPI keras >= 3.13.0, < 3.15.0 3.15.0
OSV PyPI keras < 3.12.3; >= 3.13.0, < 3.15.0 3.12.3, 3.15.0

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 2 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Aug 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.