CVE-2026-12482 json
Path Traversal via Symlink Name Validation Bypass in keras-team/keras
published 2026-07-14 3 mo ago modified 2026-10-24 15 d ago also GHSA-58hv-7753-xmfq , PYSEC-2026-3630 , EUVD-2026-43620
- cvss
- 3.1
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi keras 3.12.3, 3.15.0
- github.com/keras-team/keras@9867df4 commit
- github.com/keras-team/keras@d338a45 commit
- github.com/keras-team/keras#23015 pull request
- github.com/keras-team/keras#23165 pull request
- github.com/keras-team/keras/releases/tag/v3.12.3 release
- github.com/keras-team/keras/releases/tag/v3.15.0 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-12482 updated cvss 4.2
keras: Keras: Arbitrary File Operations via Malicious Tar Archive Processing
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-kserve-agent-rhel9, rhoai/odh-kserve-router-rhel9, rhoai/odh-kserve-controller-rhel9, rhoai/odh-modelmesh-runtime-adapter-rhel9, rhoai/odh-kserve-storage-initializer-rhel9, rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9, +3 moreaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 3.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | 3.0 | 3.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 3.0 | 3.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | keras | <3.12.3 >=3.13.0, <3.15.0 |
3.12.3 3.15.0 |
Affected products
- keras-team keras-team/keras
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/keras-team/keras/pull/23015
web
-
github.com
/keras-team/keras/pull/23165
web
-
github.com
/keras-team/keras/commit/9867df45c456dd1077a6243bb56219f66e288150
web
-
github.com
/keras-team/keras/commit/d338a45204bdc787c8b3c4a9b82c1911cd52dedf
web
-
huntr.com
/bounties/5d3638e8-a9f6-4964-a865-ddb9fe4d4b6e
exploit, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-12482
advisory
-
github.com
/keras-team/keras
package
-
github.com
/keras-team/keras/releases/tag/v3.12.3
web
-
github.com
/keras-team/keras/releases/tag/v3.15.0
web
-
pypi.org
/project/keras
package
-
github.com
/advisories/GHSA-58hv-7753-xmfq
advisory
Sources
- CVE List CVE-2026-12482
- GitHub Advisory GHSA-58hv-7753-xmfq
- NVD CVE-2026-12482
- OSV PYSEC-2026-3630
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.