CVEFinder.io

CVE-2026-11816

⚠️ high
πŸ” Scan for this CVE
Summary

Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive member paths against the process current working directory (CWD) instead of the actual extraction destination. When the process runs with CWD set to `/`, which is common in Docker containers, CI/CD runners, and Jupyter environments, the validation boundary become

Description

Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive member paths against the process current working directory (CWD) instead of the actual extraction destination. When the process runs with CWD set to `/`, which is common in Docker containers, CI/CD runners, and Jupyter environments, the validation boundary becomes the filesystem root, allowing traversal paths to bypass the security check. Additionally, the zip filter contains a bug that causes an `AttributeError` when a blocked entry is encountered, leading to incomplete extraction. Furthermore, Python 3.11 installations lack the `filter="data"` safety net, leaving them entirely reliant on the flawed CWD-based filter. Exploitation of this vulnerability can result in arbitrary file writes outside the intended extraction directory, enabling attackers to overwrite configuration files, inject malicious code, or corrupt machine learning datasets and pipelines.

CVSS Score
8.1
High
EPSS Score
0.6
Exploit Probability
Published Date
2026-06-11
First Seen: 2026-06-12
πŸ“Š Relative Risk Intelligence

This CVE is High Risk - more severe than 77.3% of all 338,292 vulnerabilities in our database.

#76,799
Top 25% most severe
Severity Percentile
🎯 CISA SSVC Assessment Updated: Jun 11, 2026
πŸ” Exploitation Status
Poc
Proof-of-concept available
βš™οΈ Automatable
NO
Requires human interaction
πŸ’₯ Technical Impact
Total
Complete system compromise possible
SSVC data provided by CISA
Last Modified 2026-07-21
CVSS Vector 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
CWE IDs (Weakness Types)

πŸ“¦ Affected Products 1

πŸ”— References 6

πŸ”— Related CVEs 6

CVE ID Severity CVSS EPSS Summary Published
CVE-2026-12481 β›” critical 9.8 0.4 A vulnerability in keras-team/keras version 3.14.0 allows for arbitrary code execution due to improper handling of deser... 2026-07-03
CVE-2026-1462 ⚠️ high 7.8 0.4 A vulnerability in the `TFSMLayer` class of the `keras` package, version 3.13.0, allows attacker-controlled TensorFlow S... 2026-04-13
CVE-2026-1669 ⚠️ high 7.5 0.3 Arbitrary file read in the model loading mechanism (HDF5 integration) in Keras versions 3.0.0 through 3.13.1 on all supp... 2026-02-11
CVE-2026-0897 ⚠️ high 7.5 0.3 Allocation of Resources Without Limits or Throttling in the HDF5 weight loading component in Google Keras 3.0.0 throu... 2026-01-15
CVE-2025-12060 πŸ”Ά medium - 0.1 The keras.utils.get_file API in Keras, when used with the extract=True option for tar archives, is vulnerable to a path ... 2025-10-30
CVE-2025-12058 πŸ”Ά medium - 0.1 The Keras.Model.load_model method, including when executed with the intended security mitigation safe_mode=True, is vuln... 2025-10-29
These CVEs affect the same products