HighVulnerability
CVE-2025-12060: Keras get_file path traversal via tar archive extraction
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-12060
- Published
- Record updated
- Affected
- keras <= 3.11.3
- Fixed in
- 3.12.0
- released October 27, 2025, 3 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
The keras.utils.get_file API in Keras, when called with extract=True on tar archives, is vulnerable to path traversal because it uses Python's tarfile.extractall without filter="data". A remote attacker can supply a malicious tar archive with crafted symlinks that, when extracted, writes arbitrary files outside the intended destination folder. The flaw is linked to the underlying Python tarfile weakness CVE-2025-4517.
Mitigation
Upgrading Python to a version that fixes CVE-2025-4517 (e.g. Python 3.13.4) is not enough. Upgrade Keras to a version with the fix (Keras 3.12).
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- kerasPyPINo LLM dependency detected · 6 tracked dependents
Related items
- MediumCVE-2026-111372: AI ChatBot for WooCommerce WoowBot plugin authorization bypass in RAG syncSame vendor · NVD/CVE Database
- HighCVE-2026-117560: ATXP Gemini CLI extension OS command injection in runAtxp() via MCP parametersSame vendor · NVD/CVE Database
- CriticalCVE-2026-90970: GitLab AI Gateway prompt template sandbox escape via crafted flow configurationSame vendor · NVD/CVE Database
- MediumCVE-2026-89278: GPTranslate WordPress plugin exposes plaintext API key to unauthenticated usersSame vendor · NVD/CVE Database
- CriticalCVE-2026-19407: Google Cloud Gemini Enterprise Agent Platform SDK for Python bucket squattingSame vendor · NVD/CVE Database