kedro-datasets has a path traversal vulnerability in PartitionedDataset that allows arbitrary file write
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
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Python (PyPI) | kedro-datasets | < 9.3.0 | 9.3.0 |
Verweise
- https://github.com/kedro-org/kedro-plugins/security/advisories/GHSA-cjg8-h5qc-hrjv
- https://nvd.nist.gov/vuln/detail/CVE-2026-35492
- https://github.com/kedro-org/kedro/issues/5452
- https://github.com/kedro-org/kedro-plugins/pull/1346
- https://github.com/kedro-org/kedro-plugins/commit/65115f76b872217317734b6bde8927170c98fc4b
- https://github.com/kedro-org/kedro-plugins
- https://github.com/kedro-org/kedro-plugins/releases/tag/kedro-datasets-9.3.0
- https://pypi.org/project/kedro-datasets
- https://github.com/advisories/GHSA-cjg8-h5qc-hrjv
- CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N- Schwäche (CWE)
CWE-22- Plattform
- Python (PyPI)
- Paket
kedro-datasets- Veröffentlicht
- 06.04.2026
- Aktualisiert
- 16.10.2026 13:17
Quellen und Lizenzen
OSV / GitHub Advisory Database - PYSEC-2026-2545 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-cjg8-h5qc-hrjv - CC BY 4.0
Schwachstellenhistorie: kedro-datasets
Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
Dies ist die einzige bekannte Schwachstelle dieses Pakets.
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.