Path Traversal via Symlink Name Validation Bypass in keras-team/keras
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| keras-team | keras-team/keras | up to latest | — | No fix listed | CNA |
| — | keras (PyPI) | before 3.12.3 | 3.12.3 | Patch available | GHSA-58hv-7753-xmfq |
| — | keras (PyPI) | 3.13.0 to before 3.15.0 | 3.15.0 | Patch available | GHSA-58hv-7753-xmfq |
- keras-team/keras Vendorkeras-team Affected up to latest Fixed in — No fix listed CNA
- keras (PyPI) Vendor— Affected before 3.12.3 Fixed in 3.12.3 Patch available GHSA-58hv-7753-xmfq
- keras (PyPI) Vendor— Affected 3.13.0 to before 3.15.0 Fixed in 3.15.0 Patch available GHSA-58hv-7753-xmfq
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:keras:keras:3.12.0:*:*:*:*:*:*:* | 3.12.0 | Vulnerable | keras-team |
- cpe:2.3:a:keras:keras:3.12.0:*:*:*:*:*:*:* Versions 3.12.0 Vulnerable ·keras-team
Remediation
- Fix · GHSA-58hv-7753-xmfq keras (PyPI) Fixed in 3.12.3 Advisory →
- Fix · GHSA-58hv-7753-xmfq keras (PyPI) Fixed in 3.15.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-12482
- 2026-10-03 Alias added: GHSA-58hv-7753-xmfq
References
Other 7
- https://github.com/keras-team/keras/pull/23015
- https://github.com/keras-team/keras/pull/23165
- https://github.com/keras-team/keras/commit/9867df45c456dd1077a6243bb56219f66e288150
- https://github.com/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf
- https://github.com/keras-team/keras
- https://github.com/keras-team/keras/releases/tag/v3.12.3
- https://github.com/keras-team/keras/releases/tag/v3.15.0
More keras-team Keras vulnerabilities
- TI-2026-10715 Deserialization of Untrusted Data in keras-team/keras CVSS 3.1CRITICAL 9.8
- TI-2026-01159 Safe Mode Bypass in keras-team/keras CVSS 3.0HIGH 8.8
- TI-2025-08001 Keras safe_mode bypass allows arbitrary code execution when loading a malicious model. CVSS 4.0HIGH 8.6
- TI-2026-10199 Path Traversal in keras-team/keras CVSS 3.0HIGH 8.1
- TI-2025-01336 Arbitrary Code Execution via Crafted Keras Config for Model Loading CVSS 4.0HIGH 7.3
- TI-2024-36840 An issue in keras 3.7.0 allows attackers to write arbitrary files to the user's machine… CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-12482 · CVE Program
- CVE-2026-12482 · NVD
- FIRST EPSS
- GHSA-58hv-7753-xmfq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-12482 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences