Skip to content
HighVulnerability

CVE-2026-11816: Keras path traversal in archive extraction utilities

Identifier
CVE-2026-11816
Published
Record updated
View JSON
Affected
  • keras < 3.14.0
Fixed in
3.14.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

Keras versions prior to 3.14.0 contain a path traversal flaw in the archive extraction utilities in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` check archive member paths against the process current working directory instead of the extraction destination, so when the working directory is `/`, as is common in Docker containers, CI/CD runners and Jupyter environments, traversal paths bypass the check. An attacker can cause arbitrary file writes outside the extraction directory, enabling overwrites of configuration files, malicious code injection or corruption of machine learning datasets and pipelines.

Mitigation

Fixed in 3.14.0.