{"id":"CVE-2026-12482","aliases":["CVE-2026-12482","GHSA-58hv-7753-xmfq","PYSEC-2026-3630"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal via Symlink Name Validation Bypass in keras-team/keras","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad en keras-team/keras versión 3.12.0 permite a un atacante crear un archivo tar malicioso que omite la validación “filter_safe_tarinfos” en “keras/src/utils/file_utils.py”. Específicamente, las entradas de enlaces simbólicos no están sujetas a la misma validación “is_path_in_dir” que las entradas de archivos regulares, lo que permite que se creen enlaces simbólicos fuera del directorio de extracción previsto. Esto puede conducir a ataques de lectura o sobrescritura de archivos, o de escape de directorio, basados en enlaces simbólicos. El problema es particularmente impactante en Python 3.10 y 3.11, donde “filter_safe_tarinfos” es la única defensa contra el salto de ruta de tar. Esta vulnerabilidad es distinta de CVE-2025-12060 y de otros problemas reportados anteriormente.","source":"nvd"}],"published":"2026-07-14T05:13:07.252Z","modified":"2026-10-24T22:10:00.210Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.1,"rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"keras-team","product":"keras-team/keras","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.12.3"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.13.0","status":"affected","fixed":"3.15.0"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.12.0"}],"vendor":"keras","product":"keras","cpe":"cpe:2.3:a:keras:keras:3.12.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.12.3"},{"type":"ecosystem","introduced":"3.13.0","status":"affected","fixed":"3.15.0"}],"ecosystem":"PyPI","package":"keras","purl":"pkg:pypi/keras","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12482","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/pull/23015","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/pull/23165","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/commit/9867df45c456dd1077a6243bb56219f66e288150","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/releases/tag/v3.12.3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/keras-team/keras/releases/tag/v3.15.0","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/keras","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-58hv-7753-xmfq","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-14T12:42:47.667Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-12482","url":"https://www.cve.org/CVERecord?id=CVE-2026-12482","licence":"CVE Terms of Use","modified":"2026-07-14T12:43:09.817Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-58hv-7753-xmfq","url":"https://github.com/advisories/GHSA-58hv-7753-xmfq","licence":"CC-BY-4.0","modified":"2026-08-10T11:40:35.541Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-12482","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12482","licence":"Public domain","modified":"2026-10-24T22:10:00.210Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3630","url":"https://osv.dev/vulnerability/PYSEC-2026-3630","licence":"CC-BY-4.0","modified":"2026-08-10T11:30:11.570Z"}],"updatedAt":"2026-11-25T22:59:27.874Z","epss":{"score":0.00238,"percentile":0.15911,"date":"2026-12-01T12:00:22.000Z"}}