4

CVE-2024-31580: linuxfoundation pytorch Heap-based Buffer Overflow

CVSS: 4.0v3.1MediumAnalyzed
AliasesGHSA-5pcm-hx3q-hm94BIT-pytorch-2024-31580PYSEC-2024-252
Published 17-04-2024Last modified 28-03-2025

Vulnerability summary

CVE-2024-31580 is a medium (CVSS 4.0) Heap-based Buffer Overflow vulnerability in linuxfoundation pytorch. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.4% of scored vulnerabilities.

Overall risk
16/100
0100
Low · default modelHow is this calculated?
CVSS score
4.0/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.22%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 17-04-2024
    PublishedVulnerability first disclosed.
  2. 28-03-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

0.00 pp

From 0.22% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.22%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

PyPI2 products
  • torch< b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 | < 2.2.0
  • torch-npu< 2.2.0
Debian1 product
  • pytorchAll versions (No fix recorded) | < 2.4.1-1
Linuxfoundation1 product
Ubuntu1 product
  • pytorchAll versions (No fix recorded)

4 vendors · 5 products

References

10 links