{"cve":"CVE-2024-31580","nvd":{"published":"2024-04-17T19:15:07.783","modified":"2026-06-17T07:28:36.197","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4.0},"cwes":["CWE-122"],"references":["https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d","https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81","https://gist.github.com/1047524396/038c78f2f007345e6f497698ace2aa3d","https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81"],"products":["linuxfoundation:pytorch"],"source":"nvd","synced_at":"2026-10-19T21:49:08.435428910+00:00"},"epss":{"cve":"CVE-2024-31580","score":0.00225,"percentile":0.13251,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-5pcm-hx3q-hm94","url":"https://osv.dev/vulnerability/GHSA-5pcm-hx3q-hm94","summary":"PyTorch heap buffer overflow vulnerability","modified":"2026-07-27T12:26:34.306757669Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<2.2.0"],"fixed":["2.2.0"]}]},{"id":"PYSEC-2024-252","url":"https://osv.dev/vulnerability/PYSEC-2024-252","summary":"","modified":"2026-07-27T12:26:34.306757669Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<2.2.0"],"fixed":["2.2.0"]}]},{"id":"PYSEC-2024-328","url":"https://osv.dev/vulnerability/PYSEC-2024-328","summary":"","modified":"2026-07-27T12:26:34.306757669Z","packages":[{"ecosystem":"PyPI","name":"torch-npu","purl":"pkg:pypi/torch-npu","ranges":["<2.2.0"],"fixed":["2.2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}