CVE-2024-31580
HIGH7.5EPSS 0.04%PyTorch heap buffer overflow vulnerability
Published: 4/17/2024Modified: 4/28/2026
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 (4)
- Bitnami/pytorchfrom 0, < 2.2.1
- Debian/pytorchfrom 0
- PyPI/torchfrom 0, < 2.2.0
- PyPI/torchfrom 0, < b5c3a17c2c207ebefcb85043f0cf94be9b2fef81, < b5c3a17c2c207ebefcb85043f0cf94be9b2fef81 | from 0, < 2.2.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-31580
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-31580
- PATCHhttps://github.com/pytorch/pytorch
- WEBhttps://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2024-252.yaml
- WEBhttps://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81
- WEBhttps://security.snyk.io/vuln/SNYK-PYTHON-TORCH-6649934