Kedro-Datasets provides data connectors for Kedro. From version 5.0.0 until 9.5.0, kedro_datasets_experimental.pytorch.PyTorchDataset in kedro-datasets loads .pt model files with torch.load without enforcing weights_only=True, and user-supplied load_args are silently dropped. On PyTorch versions earlier than 2.6, a malicious pickle-backed model from an attacker-influenced shared registry, downloaded checkpoint, or partitioned external source can execute arbitrary code when a Kedro pipeline loads it. The issue affects only the opt-in kedro_datasets_experimental component and does not affect users who load only trusted files. This issue is fixed in version 9.5.0.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-502"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62997.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "5.0.0"
},
{
"fixed": "9.5.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "4d6deb7a7ecba483d33fd43e2a6c063bcf22f413"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "kedro-datasets-9.5.0",
"range": [
{
"fixed": "fd3f7282ab870651888ebb34676bbd59261dd569"
}
],
"source": "REFERENCES_TAG"
}
]
}