{"cve":"CVE-2026-12482","nvd":{"published":"2026-07-14T06:16:59.527","modified":"2026-10-24T22:10:00.210","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5},"cwes":["CWE-22"],"references":["https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e","https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e"],"products":["keras:keras"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-12482","score":0.0033,"percentile":0.25937,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-58hv-7753-xmfq","url":"https://osv.dev/vulnerability/GHSA-58hv-7753-xmfq","summary":"Keras: tar extraction permits symlink-based path traversal","modified":"2026-08-10T11:40:35.541693489Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.12.3"],"fixed":["3.12.3"]},{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":[">=3.13.0 <3.15.0"],"fixed":["3.15.0"]}]},{"id":"PYSEC-2026-3630","url":"https://osv.dev/vulnerability/PYSEC-2026-3630","summary":"Keras: tar extraction permits symlink-based path traversal","modified":"2026-08-10T11:30:11.570093689Z","packages":[{"ecosystem":"PyPI","name":"keras","purl":"pkg:pypi/keras","ranges":["<3.12.3",">=3.13.0 <3.15.0"],"fixed":["3.12.3","3.15.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}