CVE-2026-12482: Path Traversal via Symlink Name Validation Bypass in keras-team/keras
A vulnerability in keras-team/keras version 3.12.0 allows an attacker to craft a malicious tar archive that bypasses the filtersafetarinfos validation in keras/src/utils/fileutils.py. Specifically, symlink entries are not subjected to the same ispathindir 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 filtersafetarinfos is the sole defense against tar path traversal. This vulnerability is distinct from CVE-2025-12060 and other previously reported issues.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12482?
The severity of CVE-2026-12482 is classified as low with a score of 3.1.
What kind of attack does CVE-2026-12482 facilitate?
CVE-2026-12482 facilitates path traversal attacks via a symlink name validation bypass.
Which version of Keras is affected by CVE-2026-12482?
CVE-2026-12482 affects Keras version 3.12.0.
How can I mitigate the risk of CVE-2026-12482?
Mitigation for CVE-2026-12482 involves upgrading to a patched version of Keras that addresses the vulnerability.
What should I do if I am using Keras and CVE-2026-12482 is reported?
If CVE-2026-12482 is reported, you should promptly update your Keras installation to the latest version to ensure protection.