Live threats

All CVEs / Linuxfoundation

CVE-2024-31583Linuxfoundation Pytorch

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.4%
probability of exploitation in 30 days · percentile 24
Auth required
Yes
Published
Apr 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pytorch.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI torch < 2.2.0 2.2.0 pip install "torch>=2.2.0"
PyPI torch < 2.2.0 2.2.0 pip install "torch>=2.2.0"

Per OSV / GitHub Advisories (GHSA-pg7h-5qx3-wjr3, PYSEC-2024-251). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
linuxfoundationpytorch< 2.2.0

Official sources

References

Links published by the sources. Open them with care.