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

Published Jun 11, 2026
·
Updated

Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in keras/src/utils/fileutils.py. The functions filtersafetarinfos() and filtersafezipinfos() 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 Software

2 affected components
keras-team Keras<3.14.0
Keras Keras<3.14.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade keras to a version that resolves this vulnerability.

    Fixed in 3.14.0
  2. Compensating control

    Ensure the archive extraction process does not rely on process current working directory (CWD) as the validation boundary; instead validate archive member paths against the actual intended extraction destination directory (the extraction root), preventing traversal when CWD is '/' in Docker/CI/CD/Jupyter environments.

Event History

Jun 11, 2026
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-11816?

The severity of CVE-2026-11816 is rated as high, with a score of 8.1.

2

How do I fix CVE-2026-11816?

To fix CVE-2026-11816, upgrade to Keras version 3.14.0 or later.

3

What type of vulnerability is CVE-2026-11816?

CVE-2026-11816 is a path traversal vulnerability.

4

Which versions of Keras are affected by CVE-2026-11816?

Keras versions prior to 3.14.0 are affected by CVE-2026-11816.

5

What functions in Keras are associated with CVE-2026-11816?

The functions associated with CVE-2026-11816 are filter_safe_tarinfos() and filter_safe_zipinfos().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203