# CVE-2026-11816: Path Traversal in keras-team/keras

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-28)
- **CWE:** CWE-22
- **Aliases:** GHSA-hqp4-2352-xf5r, PYSEC-2026-2324
- **Published:** 2026-06-11T13:31:52.492Z
- **Modified:** 2026-10-26T11:10:00.157Z

## Who should check

- Projects that depend on PyPI package keras (\< 3.14.0)
- Anyone running keras-team/keras \>= unspecified, \< 3.14.0

## 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

- PyPI `keras`: affected \< 3.14.0; fixed 3.14.0 (osv)
- keras-team/keras: \>= unspecified, \< 3.14.0 (cvelist)

## Mitigation

- Upgrade keras to 3.14.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://access.redhat.com/security/cve/CVE-2026-11816>
- vendor: <https://bugzilla.redhat.com/show_bug.cgi?id=2487912>
- vendor: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11816.json>
- vendor: <https://access.redhat.com/errata/RHSA-2026:42644>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-11816>
- vendor: <https://github.com/advisories/GHSA-hqp4-2352-xf5r>
- patch: <https://github.com/keras-team/keras/commit/2465b6657b02c8eed308759b7e800e295ae01888>
- patch: <https://github.com/keras-team/keras/pull/22194>
- exploit: <https://huntr.com/bounties/a07e3983-7158-4419-af2b-38f1dea01a4f>
- other: <https://github.com/keras-team/keras>
- other: <https://github.com/keras-team/keras/releases/tag/v3.14.0>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-2324.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-11816>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hqp4-2352-xf5r> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2324> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-11816> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-11816>
