Vulnerability · Published Apr 17, 2024 · Assigned by mitre

CVE-2024-31580

Medium 4.0

In plain English

A medium-severity heap buffer overflow in the pytorch package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 86.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pytorchno fix listedDEBIAN-CVE-2024-31580
Debian:13pytorch2.4.1-1DEBIAN-CVE-2024-31580
Debian:14pytorch2.4.1-1DEBIAN-CVE-2024-31580
PyPItorch2.2.0GHSA-5pcm-hx3q-hm94
PyPItorch2.2.0PYSEC-2024-252
PyPItorch-npu2.2.0PYSEC-2024-328
Ubuntu:22.04:LTSpytorchno fix listedUBUNTU-CVE-2024-31580
Ubuntu:25.10pytorchno fix listedUBUNTU-CVE-2024-31580
Ubuntu:26.04:LTSpytorchno fix listedUBUNTU-CVE-2024-31580
Ubuntu:26.10pytorchno fix listedUBUNTU-CVE-2024-31580

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References