Skip to content
MediumVulnerability

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

Published
Record updated
View JSON
Affected
  • kedro-datasets < 9.3.0
Fixed in
9.3.0
  • released April 2, 2026, 4 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

PartitionedDataset in kedro-datasets concatenated partition IDs directly onto the dataset base path without validation, so partition IDs containing .. components could write files outside the configured directory and overwrite arbitrary files on the filesystem. All storage backends, including local filesystem, S3 and GCS, are affected.

Mitigation

Fixed in kedro-datasets 9.3.0. Upgrade to kedro-datasets >= 9.3.0. The fix normalizes constructed paths with posixpath.normpath and raises a DatasetError if the resolved path escapes the base directory. Users who cannot upgrade should validate partition IDs to ensure they contain no .. path components.