CVE-2026-24747CWE-502CWE-94

PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files

High · published January 27, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
56.5
In the wild
Unconfirmed
What it is

🚨 A crafty checkpoint file can unleash chaos! Before version 2.10.0, PyTorch's `weights_only` unpickler allowed attackers to load a malicious `.pth` file that might corrupt memory and execute arbitrary code. 🔥 Think of it like a restaurant where the chef accepts any delivery without checking the ingredients — one spoiled item can ruin the whole dish. In this case, a rogue checkpoint could lead to disastrous code execution! With this vulnerability, an attacker could potentially crash your application or even take control of your system. Imagine a kitchen where the chef can no longer trust their ingredients, leading to compromised meals and chaotic service!

Put simply

Think of it like a restaurant where the chef accepts any delivery without checking the ingredients — one spoiled item can ruin the whole dish. In this case, a rogue checkpoint could lead to disastrous code execution! This vulnerability in PyTorch's `weights_only` unpickler allows for the loading of malicious checkpoint files, leading to memory corruption and potential arbitrary code execution.

What to do

With this vulnerability, an attacker could potentially crash your application or even take control of your system. Imagine a kitchen where the chef can no longer trust their ingredients, leading to compromised meals and chaotic service! Immediately upgrade PyTorch to version 2.10.0 or later to close this vulnerability. Additionally, avoid loading `.pth` files from untrusted sources to further protect your systems. You've got this! By taking these steps, you'll keep your environment safe and sound. 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00811 · 56.5th percentile
Weaknesses
CWE-502 · Deserialization of Untrusted Data; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-27T21:13Z
EPSS history
Timeline
  • 27 JAN 21:13Z
    PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
    cvelistv5