CVE-2026-11816
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.
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-06-11 |
Timeline
- 2026-06-11Published by the CNA13:31 UTC
- 2026-06-11GitHub advisory published (GHSA-hqp4-2352-xf5r)same day
- 2026-06-11CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-hqp4-2352-xf5r, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI keras | before 3.14.0 | 3.14.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| keras keras | before 3.14.0fixed in 3.14.0 | 3.14.0 |
References
- https://github.com/keras-team/keras/commit/2465b6657b02c8eed308759b7e800e295ae01888
- https://huntr.com/bounties/a07e3983-7158-4419-af2b-38f1dea01a4f
- https://access.redhat.com/errata/RHSA-2026:42644
- 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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-11816'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-11816'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-11816'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-11816'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).