CVE-2026-111170
JSON

7.1high

kedro-datasets 9.3.0 through 9.6.0 Path Traversal via MatplotlibDataset Plot Name

Severity
7.1high CVSS:4.0 by VulnCheck
Exploit likelihood
0.51% (higher than 37% of CVEs)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-cjg8-h5qc-hrjvPYSEC-2026-2545

Description

kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal vulnerability in MatplotlibDataset.save() that allows attackers to write files outside the dataset directory by supplying absolute plot names. Because validate_sub_path() strips leading slashes while pathlib's join discards the base path, attackers can create or overwrite files anywhere the process can write.

Affected

Product or packageVersionsReported by
kedro-org kedro-datasetsfrom 9.3.0 up to 9.6.0CVE List
kedro-datasets (PyPI)before 9.3.0GitHub Advisory Database, PyPA Advisory Database

All scores

VulnCheck7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal vulnerability in MatplotlibDataset.save() that allows attackers to write files outside the dataset directory by supplying absolute plot names. Because validate_sub_path() strips leading slashes while pathlib's join discards the base path, attackers can create or overwrite files anywhere the process can write.

GitHub Advisory Database
Impact

PartitionedDataset in kedro-datasets was vulnerable to path traversal. Partition IDs were concatenated directly with the dataset base path without validation. An attacker or malicious input containing .. components in a partition ID could cause files to be written outside the configured dataset directory, potentially overwriting arbitrary files on the filesystem. Users of PartitionedDataset with any storage backend (local filesystem, S3, GCS, etc.) are affected.

Patches

Yes. The vulnerability has been patched in kedro-datasets version 9.3.0. Users should upgrade to kedro-datasets >= 9.3.0. The fix normalizes constructed paths using posixpath.normpath and validates that the resolved path remains within the dataset base directory before use, raising a DatasetError if the path escapes the base directory.

Workarounds

Users who cannot upgrade should validate partition IDs before passing them to PartitionedDataset, ensuring they do not contain .. path components.

References

Fix: https://github.com/kedro-org/kedro-plugins/pull/1346 Report: https://github.com/kedro-org/kedro/issues/5452

References

https://github.com/kedro-org/kedro-plugins/pull/1544issue-tracking, patch, technical-description
https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/matplotlib/matplotlib_dataset.py#L198-L201technical-description
https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/_utils/security.py#L22technical-description
https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjvrelated, vendor-advisory, web
https://github.com/kedro-org/kedro-pluginspackage, product
https://www.vulncheck.com/advisories/kedro-datasets-9.3.0-through-9.6.0-path-traversal-via-matplotlibdataset-plot-namethird-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-35492advisory
https://github.com/kedro-org/kedro/issues/5452web
https://github.com/kedro-org/kedro-plugins/pull/1346web
https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4bweb
https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0web
https://pypi.org/project/kedro-datasetspackage

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-111170 changed 2026-10-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-cjg8-h5qc-hrjv changed 2026-10-16CC-BY-4.0
NVDCVE-2026-111170 changed 2026-10-21Public domain
PyPA Advisory DatabasePYSEC-2026-2545 changed 2026-10-16CC-BY-4.0