Advisory

PYSEC-2026-2545

Also known as: CVE-2026-111170, CVE-2026-35492, GHSA-cjg8-h5qc-hrjv

Summary

kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write

Details

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

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2026-07-13 14:36 UTC
Modified
2026-10-16 10:55 UTC

Affected packages and fixes

kedro-datasets

PyPI · All systems

Affected

  • introduced 0, fixed 9.3.0 (ecosystem)

Fixed versions

9.3.0

Fix

  • Fixed version 9.3.0
    pip install --upgrade kedro-datasets==9.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences