CVE-2026-12482 Details
Description
A vulnerability in keras-team/keras version 3.12.0 allows an attacker to craft a malicious tar archive that bypasses the `filter_safe_tarinfos` validation in `keras/src/utils/file_utils.py`. Specifically, symlink entries are not subjected to the same `is_path_in_dir` validation as regular file entries, allowing symlinks to be created outside the intended extraction directory. This can lead to symlink-based file read, file overwrite, or directory escape attacks. The issue is particularly impactful on Python 3.10 and 3.11, where `filter_safe_tarinfos` is the sole defense against tar path traversal. This vulnerability is distinct from CVE-2025-12060 and other previously reported issues.
A path traversal vulnerability has been identified in Keras version 3.12.0. The issue arises in the `filter_safe_tarinfos` function within `keras/src/utils/file_utils.py`, where validation for symlink entries is insufficient. While regular file names are properly checked against the extraction directory, symlink names are not, allowing attackers to create symlinks that traverse outside the intended boundaries. This flaw can be exploited to read or overwrite files, or to escape the extraction directory altogether. The vulnerability is particularly severe in Python versions 3.10 and 3.11, where it bypasses the only available safeguard against tar path traversal.
Users are advised to update to a version of Keras where this vulnerability has been addressed. As of now, Keras 3.12.0 is the latest version, and this vulnerability is still present.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e | CISA-ADP | ExploitThird Party Advisory |
| https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| keras keras | 3.12.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Aug 6, 2026 | Initial Analysis | [email protected] |
| Jul 14, 2026 | CVE Modified | CISA-ADP |
| Jul 14, 2026 | New CVE Received | [email protected] |