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.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31580.json"
}{
"cpe": "cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}"2026-07-22T03:08:57Z"
[
{
"signature_version": "v1",
"id": "CVE-2024-31580-32e4346e",
"digest": {
"function_hash": "177212597411118124202478742030508243218",
"length": 1070.0
},
"target": {
"function": "tupleConstruct",
"file": "torch/csrc/jit/runtime/vararg_functions.cpp"
},
"deprecated": false,
"signature_type": "Function",
"source": "https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81"
},
{
"deprecated": false,
"id": "CVE-2024-31580-65aa6a70",
"digest": {
"line_hashes": [
"122402175758227357894067518701770309718",
"148624457286558011395772266585298619984",
"264756394319484961386458264875539426314",
"204288781394093359214353439803224706057"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "torch/csrc/jit/runtime/vararg_functions.cpp"
},
"signature_type": "Line",
"source": "https://github.com/pytorch/pytorch/commit/b5c3a17c2c207ebefcb85043f0cf94be9b2fef81"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31580.json"