CVE-2026-62997: Kedro-Datasets: Remote code execution in experimental `PyTorchDataset` via unsafe `torch.load`

Published Sep 16, 2026
·
Updated

Kedro-Datasets provides data connectors for Kedro. From version 5.0.0 until 9.5.0, kedrodatasetsexperimental.pytorch.PyTorchDataset in kedro-datasets loads .pt model files with torch.load without enforcing weightsonly=True, and user-supplied loadargs 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 kedrodatasetsexperimental component and does not affect users who load only trusted files. This issue is fixed in version 9.5.0.

Affected Software

2 affected components
Kedro-Datasets kedro-datasets>=5.0.0<9.5.0
PyTorch PyTorch<2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade kedro-datasets to a version that resolves this vulnerability.

    Fixed in 9.5.0

Event History

Sep 16, 2026
CVE Published
via MITRE·08:48 PM
Data Sourced
via MITRE·08:48 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed to exploitation?

Exposure is limited to deployments that opt into kedro_datasets_experimental.pytorch.PyTorchDataset, run a PyTorch version earlier than 2.6, and load attacker-influenced or otherwise untrusted .pt files. Pipelines that load only trusted files are not affected by this issue.

2

What must an attacker control to execute code?

An attacker needs to cause the pipeline to load a malicious pickle-backed model file. Examples include a model from an attacker-influenced shared registry, a downloaded checkpoint, or a partitioned external source.

3

Does supplying load_args mitigate the unsafe load behavior?

No. In the affected versions, user-supplied load_args are silently dropped, so they do not enforce weights_only=True during torch.load.

4

What is the remediation?

Upgrade kedro-datasets to version 9.5.0, which fixes the issue. Until upgrading, avoid loading untrusted .pt files through the experimental PyTorchDataset component.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203