Read the docs
TI-2026-10716 Aliases CVE-2026-12482GHSA-58hv-7753-xmfq

Path Traversal via Symlink Name Validation Bypass in keras-team/keras

Priority MEDIUM 62CWE-22Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0033 26th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial keras (PyPI): 3.12.3, 3.15.0Red Hat: 1 without a fix

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

VendorProductAffected versionsFixed inStatusSource
keras-teamkeras-team/kerasup to latest—No fix listedCNA
—keras (PyPI)before 3.12.33.12.3Patch availableGHSA-58hv-7753-xmfq
—keras (PyPI)3.13.0 to before 3.15.03.15.0Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:keras:keras:3.12.0:*:*:*:*:*:*:*3.12.0Vulnerablekeras-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 →

ProductStatusPlan or fix
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-12482
  2. 2026-10-03 Alias added: GHSA-58hv-7753-xmfq

References

  • 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
See all 11 →

Sources