Arbitrary Code Injection Affecting pytorch package, versions <2.12.0+dfsg2-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.71% (51st 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-DEBIANUNSTABLE-PYTORCH-15133878
  • published29 Jan 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 Debian:unstable pytorch to version 2.12.0+dfsg2-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pytorch package and not the pytorch package as distributed by Debian. See How to fix? for Debian:unstable 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.