Description
kedro-datasets from 9.3.0 through 9.6.0 contains a path traversal vulnerability in MatplotlibDataset.save() that allows attackers to write files outside the dataset directory by supplying absolute plot names. Because validate_sub_path() strips leading slashes while pathlib's join discards the base path, attackers can create or overwrite files anywhere the process can write.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kedro-org | kedro-datasets | 9.3.0 – ≤ 9.6.0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | kedro-datasets | < 9.3.0 | 9.3.0 | GHSA-cjg8-h5qc-hrjv |
References
- https://github.com/kedro-org/kedro-plugins/pull/1544 issue-tracking technical-description patch
- https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/matplotlib/matplotlib_dataset.py#L198-L201 technical-description
- https://github.com/kedro-org/kedro-plugins/blob/611ce7a20dcb0be655190afb9064468fa278b08c/kedro-datasets/kedro_datasets/_utils/security.py#L22 technical-description
- GitHub Security Advisory (GHSA-cjg8-h5qc-hrjv) related vendor-advisory
- https://github.com/kedro-org/kedro-plugins product
- VulnCheck Advisory: kedro-datasets 9.3.0 through 9.6.0 Path Traversal via MatplotlibDataset Plot Name third-party-advisory