id: PYSEC-2026-2545 published: "2026-07-13T14:36:48.722547Z" modified: "2026-07-13T16:04:24.790709Z" aliases: - CVE-2026-35492 - GHSA-cjg8-h5qc-hrjv summary: kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write details: "### 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" affected: - package: name: kedro-datasets ecosystem: PyPI purl: pkg:pypi/kedro-datasets ranges: - type: ECOSYSTEM events: - introduced: "0" - fixed: 9.3.0 versions: - 0.0.1 - 0.0.2 - 0.0.3 - 0.0.4 - 0.0.5 - 0.0.6 - 0.0.7 - 1.0.0 - 1.0.1 - 1.0.2 - 1.1.0 - 1.1.1 - 1.2.0 - 1.3.0 - 1.4.0 - 1.4.1 - 1.4.2 - 1.5.0 - 1.5.1 - 1.5.2 - 1.5.3 - 1.6.0 - 1.7.0 - 1.7.1 - 1.8.0 - 2.0.0 - 2.1.0 - 3.0.0 - 3.0.1 - 4.0.0 - 4.1.0 - 5.0.0 - 5.1.0 - 6.0.0 - 7.0.0 - 8.0.0 - 8.1.0 - 9.0.0 - 9.1.0 - 9.1.1 - 9.2.0 references: - type: WEB url: https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjv - type: ADVISORY url: https://nvd.nist.gov/vuln/detail/CVE-2026-35492 - type: WEB url: https://github.com/kedro-org/kedro/issues/5452 - type: WEB url: https://github.com/kedro-org/kedro-plugins/pull/1346 - type: WEB url: https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4b - type: PACKAGE url: https://github.com/kedro-org/kedro-plugins - type: WEB url: https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0 - type: PACKAGE url: https://pypi.org/project/kedro-datasets - type: ADVISORY url: https://github.com/advisories/GHSA-cjg8-h5qc-hrjv severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N