ZeroHour

CVE-2026-62997

niche

Unsafe pickle deserialization (RCE) in Kedro-Datasets experimental PyTorchDataset

CVSS 4.0
7.7 high
EPSS
Published
()
Modified
AI analysis

Kedro-Datasets' opt-in experimental PyTorch connector (kedro_datasets_experimental.pytorch.PyTorchDataset) loads .pt model files via torch.load without enforcing weights_only=True, and user-supplied load_args are silently dropped, so safe loading cannot be enabled through configuration (CWE-502). It is triggered when a Kedro pipeline loads a pickle-backed .pt model from an attacker-influenced source, such as a shared registry, a downloaded checkpoint, or a partitioned external data source, on PyTorch versions earlier than 2.6. An attacker gains arbitrary code execution on the host running the pipeline. Only users of the opt-in experimental component who load untrusted files are affected; pipelines loading only trusted files are not impacted. No public proof-of-concept is known, it is not in CISA KEV, and no exploitation has been reported; the flaw is fixed in version 9.5.0.

What to do: Upgrade kedro-datasets to 9.5.0 or later, or upgrade PyTorch to 2.6+ so torch.load defaults to weights_only=True. Audit pipelines for use of kedro_datasets_experimental.pytorch.PyTorchDataset and ensure any .pt files it loads come only from trusted sources (shared registries, downloaded checkpoints, and partitioned external stores are the risky paths). Note that supplying weights_only=True via load_args is not a reliable mitigation because load_args are silently dropped in affected versions.

Affected
Kedro (kedro-datasets) kedro_datasets_experimental.pytorch.PyTorchDataset>=5.0.0, <9.5.0 (fixed in 9.5.0)
PyTorch (exploitation precondition, not itself vulnerable)<2.6 (torch.load does not default to weights_only=True)
Estimated exposure
nichelikely only thousands of users at most (niche open-source data-engineering library; the vulnerable connector is an opt-in experimental component) — No public install counts were provided; the estimate reflects Kedro's niche adoption among data-science pipeline teams, the fact that only the opt-in kedro_datasets_experimental PyTorch connector is affected, and the further constraints of…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Weakness
CWE-502
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.