{"id":"CVE-2026-12482","published":"2026-07-14T05:13:07Z","modified":"2026-07-14T12:43:09Z","title":"Path Traversal via Symlink Name Validation Bypass in keras-team/keras","vendor":"keras-team","product":"keras-team/keras","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0033,"percentile":0.26838,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e","tags":[]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":5.37},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"keras-team","affectedVersions":[{"vendor":"keras-team","product":"keras-team/keras","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-14T12:42:47.667186Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"keras","vulnerableRanges":["<3.12.3",">=3.13.0, <3.15.0"],"patched":["3.12.3","3.15.0"],"from":["GHSA-58hv-7753-xmfq","PYSEC-2026-3630"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the keras-team/keras library (version 3.12.0) lies in the tar extraction validation of keras/src/utils/file_utils.py, where symlink entries skip the directory check applied to regular files, so symlinks can point outside the intended extraction directory. An attacker who supplies a crafted tar archive, with the victim required to interact by opening or loading it, could read or overwrite files and escape the extraction directory, with the issue most pronounced on Python 3.10 and 3.11.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:35Z"},"euvd":{"id":"EUVD-2026-43620","exploited":false,"provenance":"source"}}