GitHub Advisoryadvisory · PyPI

GHSA-cjg8-h5qc-hrjv kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write

MEDIUM Published 2026-04-06 Modified 2026-04-07 Official page ↗
Aliases
CVE-2026-35492
Ecosystem
PyPI
Packages
kedro-datasets
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2026-04-06

Affected packages

• PyPI kedro-datasets: < 9.3.0 → fixed in 9.3.0

Description

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

Related

Alias · CVE (1)

  • CVE-2026-35492 Kedro-Datasets is a Kendo plugin providing data connectors. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References