{"cve":"CVE-2024-31583","nvd":{"published":"2024-04-17T19:15:07.950","modified":"2026-06-17T07:28:36.677","status":"Analyzed","description":"Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-416"],"references":["https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176","https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132","https://github.com/pytorch/pytorch/commit/9c7071b0e324f9fb68ab881283d6b8d388a4bcd2","https://gist.github.com/1047524396/43e19a41f2b36503a4a228c32cdbc176","https://github.com/pytorch/pytorch/blob/v2.1.2/torch/csrc/jit/mobile/interpreter.cpp#L132"],"products":["linuxfoundation:pytorch"],"source":"nvd","synced_at":"2026-10-19T21:49:08.435428910+00:00"},"epss":{"cve":"CVE-2024-31583","score":0.00268,"percentile":0.19021,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pg7h-5qx3-wjr3","url":"https://osv.dev/vulnerability/GHSA-pg7h-5qx3-wjr3","summary":"Pytorch use-after-free vulnerability","modified":"2025-06-11T06:29:21.475649Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<2.2.0"],"fixed":["2.2.0"]}]},{"id":"PYSEC-2024-251","url":"https://osv.dev/vulnerability/PYSEC-2024-251","summary":"","modified":"2026-06-10T17:51:26.526436006Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","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."]}