CVE-2024-31580Linuxfoundation Pytorch
Medium 4.0
Follow: this CVE · Linuxfoundation · Linuxfoundation Pytorch We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pytorch.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | pytorch | < 2.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Third Party Advisory
- github.com Patch