Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-111170 Overview
CVE-2026-111170 is a path traversal vulnerability [CWE-22] in the kedro-datasets package, affecting versions 9.3.0 through 9.6.0. The flaw resides in MatplotlibDataset.save(), which fails to safely contain user-supplied plot names within the dataset directory. An attacker who can influence plot names can write files to arbitrary locations the process can access. The underlying cause is a mismatch between validate_sub_path(), which strips leading slashes, and Python's pathlib join semantics, which discard the base path when joined with an absolute path.
Critical Impact
Attackers can create or overwrite files anywhere the Kedro process has write permission, enabling data tampering, configuration corruption, or code execution via overwritten scripts.
Affected Products
- kedro-datasets 9.3.0
- kedro-datasets versions 9.3.0 through 9.6.0
- MatplotlibDataset component in the kedro-plugins repository
Discovery Timeline
- 2026-10-15 - CVE-2026-111170 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-111170
Vulnerability Analysis
The vulnerability resides in the MatplotlibDataset.save() method of kedro-datasets. When saving plots, the dataset constructs an output path by joining a configured base directory with a caller-supplied plot name. The code relies on validate_sub_path() from kedro_datasets/_utils/security.py to prevent escape from the intended directory. That helper strips leading forward slashes from the input but does not reject absolute paths outright.
Python's pathlib.Path join operation discards the left-hand base path whenever the right-hand component is absolute. As a result, a plot name beginning with a slash still produces an absolute path after being stripped and rejoined through other code paths, or bypasses containment checks that assume stripping is sufficient. The attacker-controlled name is then passed to a file write operation outside the dataset directory.
Root Cause
The root cause is an inconsistent trust boundary between the sanitization helper and pathlib. validate_sub_path() only normalizes a surface attribute of the input (leading slashes), while pathlib applies POSIX join semantics that treat absolute components as roots. Neither resolves the final path and verifies it still lives beneath the dataset directory using Path.resolve() and prefix comparison.
Attack Vector
Exploitation requires an attacker to control the plot name parameter passed to MatplotlibDataset.save(). In practice this applies to Kedro pipelines that accept dataset keys, plot filenames, or templated outputs from configuration files, parameter stores, or upstream data. An attacker supplying an absolute path such as one targeting system configuration, Python site-packages, or user shell startup files can overwrite those files with PNG content, breaking integrity or enabling follow-on code execution when overwritten targets are executed.
No verified public exploit code is available at this time. See the GitHub Security Advisory GHSA-cjg8-h5qc-hrjv and the VulnCheck Kedro Datasets Advisory for technical details.
Detection Methods for CVE-2026-111170
Indicators of Compromise
- Unexpected .png or image files written outside the configured Kedro dataset directory, especially under system paths or user home directories.
- Modification timestamps on sensitive files (shell profiles, Python packages, configuration files) that align with Kedro pipeline execution windows.
- Plot name values in Kedro catalog or parameters containing leading slashes, .. sequences, or absolute path prefixes.
Detection Strategies
- Audit pipeline source and configuration for MatplotlibDataset entries whose filenames derive from external input, environment variables, or dataset content.
- Inspect filesystem write telemetry from the Python process executing Kedro for writes outside declared dataset directories.
- Review the installed kedro-datasets version using pip show kedro-datasets and flag versions 9.3.0 through 9.6.0.
Monitoring Recommendations
- Enable file integrity monitoring on paths adjacent to Kedro workspaces and on sensitive system directories writable by the Kedro service account.
- Log and alert on process-level file writes outside the project data directory using host-based telemetry.
- Capture Kedro run logs and correlate plot save operations with resulting filesystem paths.
How to Mitigate CVE-2026-111170
Immediate Actions Required
- Upgrade kedro-datasets to a fixed release that incorporates GitHub PR #1544.
- Audit all Kedro catalogs for MatplotlibDataset definitions and remove or sanitize dynamic plot name inputs.
- Run Kedro pipelines under a least-privilege account that cannot modify system binaries, Python site-packages, or shared configuration.
Patch Information
The fix is tracked in the kedro-plugins repository via GitHub PR #1544 and documented in GitHub Security Advisory GHSA-cjg8-h5qc-hrjv. Review the vulnerable code in the GitHub Security Utility Code and the GitHub Matplotlib Dataset Code to confirm remediation coverage in forks.
Workarounds
- Validate plot names in pipeline code by rejecting any value that is absolute or contains .. before passing it to MatplotlibDataset.save().
- Resolve the computed output path with Path(base).joinpath(name).resolve() and verify it is a subpath of the dataset directory before writing.
- Isolate Kedro execution within a container or chroot that restricts writes to the project directory.
# Upgrade kedro-datasets to a patched release
pip install --upgrade "kedro-datasets>9.6.0"
# Verify the installed version
pip show kedro-datasets | grep -i version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

