CVE-2026-11816
Path Traversal in keras-team/keras
Also known as GHSA-hqp4-2352-xf5r, PYSEC-2026-2324
Mitigation
- Upgrade keras to 3.14.0 or later.
Who should check
- Projects that depend on PyPI package keras (< 3.14.0)
- Anyone running keras-team/keras >= unspecified, < 3.14.0
Vulnerability facts
- Affected
- keras < 3.14.0
- Fixed in
- 3.14.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.67% chance of exploitation in 30 days (percentile 47, 2026-11-26)
- CWE
- CWE-22
- Modified
Description
Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive member paths against the process current working directory (CWD) instead of the actual extraction destination. When the process runs with CWD set to `/`, which is common in Docker containers, CI/CD runners, and Jupyter environments, the validation boundary becomes the filesystem root, allowing traversal paths to bypass the security check. Additionally, the zip filter contains a bug that causes an `AttributeError` when a blocked entry is encountered, leading to incomplete extraction. Furthermore, Python 3.11 installations lack the `filter="data"` safety net, leaving them entirely reliant on the flawed CWD-based filter. Exploitation of this vulnerability can result in arbitrary file writes outside the intended extraction directory, enabling attackers to overwrite configuration files, inject malicious code, or corrupt machine learning datasets and pipelines.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI keras | < 3.14.0 | 3.14.0 | osv |
| keras-team/keras | >= unspecified, < 3.14.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-11816. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-11816.md Affected: keras < 3.14.0 Fixed in: 3.14.0 Steps: 1. Search this machine and project for keras (PyPI), keras-team/keras: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/security/cve/CVE-2026-11816
- https://bugzilla.redhat.com/show_bug.cgi?id=2487912
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11816.json
- https://access.redhat.com/errata/RHSA-2026:42644
- https://nvd.nist.gov/vuln/detail/CVE-2026-11816
- https://github.com/advisories/GHSA-hqp4-2352-xf5r
Patches
Exploits and PoCs
FAQ
Is CVE-2026-11816 being exploited?
There is no confirmed exploitation: CVE-2026-11816 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-11816?
High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-11816?
keras < 3.14.0.
Is there a fix for CVE-2026-11816?
Yes. Fixed in 3.14.0. Upgrade keras to 3.14.0 or later.
How do I check if I'm affected by CVE-2026-11816?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.