{"id":"CVE-2026-111170","aliases":["CVE-2026-111170","GHSA-cjg8-h5qc-hrjv","PYSEC-2026-2545"],"related":["CVE-2026-35492"],"kind":"vulnerability","state":"published","title":"kedro-datasets 9.3.0 through 9.6.0 Path Traversal via MatplotlibDataset Plot Name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nPartitionedDataset 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.\nUsers of PartitionedDataset with any storage backend (local filesystem, S3, GCS, etc.) are affected.\n\n### Patches\nYes. The vulnerability has been patched in kedro-datasets version 9.3.0.\nUsers 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.\n\n### Workarounds\nUsers who cannot upgrade should validate partition IDs before passing them to PartitionedDataset, ensuring they do not contain `..` path components.\n\n### References\nFix: https://github.com/kedro-org/kedro-plugins/pull/1346\nReport: https://github.com/kedro-org/kedro/issues/5452","format":"markdown","source":"ghsa"}],"published":"2026-04-06T17:55:14.000Z","modified":"2026-10-21T02:17:04.873Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":7.1,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"9.3.0","lastAffected":"9.6.0","status":"affected"}],"vendor":"kedro-org","product":"kedro-datasets","repo":"https://github.com/kedro-org/kedro-plugins","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.3.0"}],"ecosystem":"PyPI","package":"kedro-datasets","purl":"pkg:pypi/kedro-datasets","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.3.0"}],"ecosystem":"PyPI","package":"kedro-datasets","purl":"pkg:pypi/kedro-datasets","source":"pysec"}],"references":[{"url":"https://github.com/kedro-org/kedro-plugins/pull/1544","tags":["issue-tracking","patch","technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/matplotlib/matplotlib_dataset.py#L198-L201","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/_utils/security.py#L22","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjv","tags":["related","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/kedro-org/kedro-plugins","tags":["package","product"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vulncheck.com/advisories/kedro-datasets-9.3.0-through-9.6.0-path-traversal-via-matplotlibdataset-plot-name","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35492","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/kedro-org/kedro/issues/5452","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/kedro-org/kedro-plugins/pull/1346","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4b","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/kedro-datasets","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-cjg8-h5qc-hrjv","tags":["advisory"],"sources":["pysec"]}],"credits":["Zachariah Mithani"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-21T01:30:33.205Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-111170","url":"https://www.cve.org/CVERecord?id=CVE-2026-111170","licence":"CVE Terms of Use","modified":"2026-10-21T01:30:43.369Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cjg8-h5qc-hrjv","url":"https://github.com/advisories/GHSA-cjg8-h5qc-hrjv","licence":"CC-BY-4.0","modified":"2026-10-16T10:55:54.308Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-111170","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111170","licence":"Public domain","modified":"2026-10-21T02:17:04.873Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2545","url":"https://osv.dev/vulnerability/PYSEC-2026-2545","licence":"CC-BY-4.0","modified":"2026-10-16T10:55:54.308Z"}],"updatedAt":"2026-11-25T22:59:44.942Z","epss":{"score":0.00511,"percentile":0.36899,"date":"2026-11-30T12:00:22.000Z"}}