CVE-2026-9335: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in keras-team keras-team/keras
Keras versions up to and including 3.14.0 contain a path traversal vulnerability due to improper handling of HDF5 ExternalLinks in certain functions. This flaw allows crafted .h5, .weights.h5, or .keras files with malicious ExternalLinks to cause disclosure of arbitrary local HDF5 file contents. The vulnerability arises because KerasFileEditor and keras.saving.load_weights bypass safety checks intended to block ExternalLinks and SoftLinks, leading to automatic dereferencing of external files on the local filesystem.
AI Analysis
Technical Summary
CVE-2026-9335 is a path traversal vulnerability (CWE-22) in keras-team/keras versions <= 3.14.0. The issue stems from the KerasFileEditor and keras.saving.load_weights functions bypassing the safe_get_h5_group and safe_get_h5_dataset helpers, which are designed to reject HDF5 ExternalLinks and SoftLinks. This bypass enables automatic dereferencing of ExternalLinks to external HDF5 files, allowing an attacker to disclose arbitrary local file contents by providing malicious HDF5 files containing such links. The vulnerability affects local file confidentiality but does not impact integrity or availability.
Potential Impact
An attacker can craft malicious HDF5-based files that, when loaded by vulnerable Keras functions, cause disclosure of arbitrary local HDF5 file contents on the victim's system. This compromises confidentiality of local data accessible via HDF5 ExternalLinks. There is no indication of integrity or availability impact. The vulnerability requires user interaction (loading a malicious file) and network access is not required for exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unauthenticated .h5, .weights.h5, or .keras files that may contain ExternalLinks. Monitor official keras-team communications for updates and patches addressing this vulnerability.
CVE-2026-9335: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in keras-team keras-team/keras
Description
Keras versions up to and including 3.14.0 contain a path traversal vulnerability due to improper handling of HDF5 ExternalLinks in certain functions. This flaw allows crafted .h5, .weights.h5, or .keras files with malicious ExternalLinks to cause disclosure of arbitrary local HDF5 file contents. The vulnerability arises because KerasFileEditor and keras.saving.load_weights bypass safety checks intended to block ExternalLinks and SoftLinks, leading to automatic dereferencing of external files on the local filesystem.
CVSS v3.0
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-9335 is a path traversal vulnerability (CWE-22) in keras-team/keras versions <= 3.14.0. The issue stems from the KerasFileEditor and keras.saving.load_weights functions bypassing the safe_get_h5_group and safe_get_h5_dataset helpers, which are designed to reject HDF5 ExternalLinks and SoftLinks. This bypass enables automatic dereferencing of ExternalLinks to external HDF5 files, allowing an attacker to disclose arbitrary local file contents by providing malicious HDF5 files containing such links. The vulnerability affects local file confidentiality but does not impact integrity or availability.
Potential Impact
An attacker can craft malicious HDF5-based files that, when loaded by vulnerable Keras functions, cause disclosure of arbitrary local HDF5 file contents on the victim's system. This compromises confidentiality of local data accessible via HDF5 ExternalLinks. There is no indication of integrity or availability impact. The vulnerability requires user interaction (loading a malicious file) and network access is not required for exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid loading untrusted or unauthenticated .h5, .weights.h5, or .keras files that may contain ExternalLinks. Monitor official keras-team communications for updates and patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-05-22T23:38:39.544Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6ecfa7bf32cb7a345a5080
Added to database: 08/02/2026, 05:03:35 UTC
Last enriched: 08/02/2026, 05:21:24 UTC
Last updated: 08/02/2026, 05:51:29 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.