CVE-2024-31580
JSON

4.0medium

PyTorch heap buffer overflow vulnerability

Severity
4.0medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5pcm-hx3q-hm94BIT-PYTORCH-2024-31580PYSEC-2024-252PYSEC-2024-328

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
pytorch pytorchbefore 2.2.0CVE List
torch (PyPI)before 2.2.0, before b5c3a17c2c207ebefcb85043f0cf94be9b2fef81GitHub Advisory Database, PyPA Advisory Database
linuxfoundation pytorchbefore 2.2.0NVD
torch-npu (PyPI)before 2.2.0PyPA Advisory Database
pytorch (Bitnami)before 2.2.1Bitnami Vulnerability Database

All scores

CISA-ADP4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
PyPA Advisory Database4.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Bitnami Vulnerability Databasemedium rating

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se descubrió que PyTorch anterior a v2.2.0 contenía una vulnerabilidad de desbordamiento de búfer de almacenamiento dinámico en el componente /runtime/vararg_functions.cpp. Esta vulnerabilidad permite a los atacantes provocar una denegación de servicio (DoS) mediante una entrada manipulada.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-31580 changed 2025-03-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-5pcm-hx3q-hm94 changed 2026-07-27CC-BY-4.0
NVDCVE-2024-31580 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-252 changed 2026-07-27CC-BY-4.0
PyPA Advisory DatabasePYSEC-2024-328 changed 2026-07-27CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-PYTORCH-2024-31580 changed 2026-09-08Apache-2.0