Arbitrary Code Injection Affecting pytorch-2.5 package, versions <2.5.1+e1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.8% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PYTORCH25-22576264
  • published17 Nov 2026
  • disclosed27 Jan 2026

Introduced: 27 Jan 2026

CVE-2026-24747  (opens in a new tab)
CWE-94  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade Echo:latest pytorch-2.5 to version 2.5.1+e1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pytorch-2.5 package and not the pytorch-2.5 package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's weights_only unpickler allows an attacker to craft a malicious checkpoint file (.pth) that, when loaded with torch.load(..., weights_only=True), can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.