---
id: CVE-2026-24747
title: PyTorch is a Python package that provides tensor computation
summary: >-
  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.l…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-502
  - CWE-502
vendor: linuxfoundation
product: pytorch
affected:
  - pytorch < 2.10.0
patched:
  - pytorch 2.10.0
published: '2026-01-27'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-24747'
references:
  - url: >-
      https://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139
    label: security-advisories@github.com
  - url: 'https://github.com/pytorch/pytorch/issues/163105'
    label: security-advisories@github.com
  - url: 'https://github.com/pytorch/pytorch/releases/tag/v2.10.0'
    label: security-advisories@github.com
  - url: 'https://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:24977'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-24747'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2433612'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.00721
epssPercentile: 0.52537
ingestedAt: '2026-06-30T17:40:12.477Z'
---

## Overview

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.

## Affected

- `pytorch < 2.10.0`

## Remediation

Upgrade past the affected range:

- `pytorch 2.10.0`
