CVE-2026-9335: Improper Handling of HDF5 ExternalLinks in keras-team/keras

Published Aug 2, 2026
·
Updated

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.loadweights functions bypass the safegeth5group and safegeth5dataset 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.loadweights 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.

Affected Software

1 affected component
keras-team/keras<=3.14.0

Event History

Aug 2, 2026
CVE Published
via MITRE·03:49 AM
Data Sourced
via MITRE·03:49 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-9335?

CVE-2026-9335 has a medium severity rating of 6.5.

2

How do I fix CVE-2026-9335?

To mitigate CVE-2026-9335, upgrade to keras version 3.14.1 or later.

3

What vulnerability does CVE-2026-9335 exploit?

CVE-2026-9335 exploits improper handling of HDF5 ExternalLinks in keras-team/keras.

4

What are the potential risks of CVE-2026-9335?

CVE-2026-9335 can lead to arbitrary local HDF5 file content disclosure.

5

In which versions of Keras is CVE-2026-9335 found?

CVE-2026-9335 affects keras-team/keras versions up to and including 3.14.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203