Live threats

All CVEs / Linuxfoundation

CVE-2024-31580Linuxfoundation Pytorch

Medium 4.0

Priority
24
CVSS 3.1
4.0
EPSS
0.3%
probability of exploitation in 30 days · percentile 15
Auth required
Yes
Published
Apr 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-122
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

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"
PyPI torch-npu < 2.2.0 2.2.0 pip install "torch-npu>=2.2.0"

Per OSV / GitHub Advisories (GHSA-5pcm-hx3q-hm94, PYSEC-2024-252, PYSEC-2024-328). 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.