{"id":"CVE-2022-45907","published":"2022-11-26T00:00:00Z","modified":"2025-04-25T19:16:18Z","title":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval…","vendor":null,"product":null,"tier":"tail","description":{"text":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01332,"percentile":0.71825,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/pytorch/pytorch/issues/88868","tags":[]},{"url":"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3","tags":[]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":14.37},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-25T19:15:34.545254Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"torch","vulnerableRanges":["<1.13.1"],"patched":["1.13.1"],"from":["GHSA-47fc-vmwq-366v","PYSEC-2022-43015"],"provenance":"source"}],"summary":{"text":"The flaw is in PyTorch, specifically in the torch.jit.annotations.parse_type_line function, where eval is used unsafely, in versions before trunk/89695. An attacker who can get a crafted type-line annotation processed by this function can cause arbitrary code execution; the vector indicates this is reachable over the network with low complexity, requiring no privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:28Z"},"euvd":{"id":"EUVD-2022-0340","exploited":false,"provenance":"source"}}