# CVE-2024-31580

- Priority: **Routine**
- Reason: Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-17 · Modified: 2025-03-28
- Aliases: GHSA-5pcm-hx3q-hm94, BIT-pytorch-2024-31580, PYSEC-2024-252, PYSEC-2024-328, UBUNTU-CVE-2024-31580, DEBIAN-CVE-2024-31580
- Record: https://cvemate.com/vulnerability/CVE-2024-31580 · JSON: https://cvemate.com/vulnerability/CVE-2024-31580/json

## Description

```text
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.
```

## Signals

- CVSS: 4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.225%, percentile 14.053%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian pytorch (Debian): All versions (No fix recorded) \| \< 2.4.1-1
- ubuntu pytorch (Ubuntu): All versions (No fix recorded)
- linuxfoundation pytorch: \< 2.2.0
- PyPI torch (PyPI): \< b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 \| \< 2.2.0
- PyPI torch-npu (PyPI): \< 2.2.0

## References

- <https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81>
- <https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31580>
- <https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-252.yaml>
- <https://github.com/pytorch/pytorch>
- <https://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6649934>
- <https://github.com/advisories/GHSA-5pcm-hx3q-hm94>
- <https://ubuntu.com/security/CVE-2024-31580>
- <https://www.cve.org/CVERecord?id=CVE-2024-31580>
- <https://security-tracker.debian.org/tracker/CVE-2024-31580>

---

Data as of 2026-12-05T09:09:12.363Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
