{"id":"GHSA-47fc-vmwq-366v","summary":"PyTorch vulnerable to arbitrary code execution","details":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely. The fix for this issue is available in version 1.13.1. There is a release checker in [issue #89855](https://github.com/pytorch/pytorch/issues/89855).","aliases":["BIT-pytorch-2022-45907","CVE-2022-45907","PYSEC-2022-43015"],"modified":"2024-11-13T23:02:43.749058Z","published":"2022-11-26T03:30:27Z","database_specific":{"severity":"CRITICAL","nvd_published_at":"2022-11-26T02:15:00Z","github_reviewed_at":"2022-12-02T22:28:40Z","github_reviewed":true,"cwe_ids":["CWE-77"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/issues/88868"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/issues/89855"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/pull/89189"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml"},{"type":"PACKAGE","url":"https://github.com/pytorch/pytorch"},{"type":"WEB","url":"https://github.com/pytorch/pytorch/releases/tag/v1.13.1"}],"affected":[{"package":{"name":"torch","ecosystem":"PyPI","purl":"pkg:pypi/torch"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.1"}]}],"versions":["1.0.0","1.0.1","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.3.1","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.7.1","1.8.0","1.8.1","1.9.0","1.9.1"],"database_specific":{"last_known_affected_version_range":"\u003c= 1.13.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-47fc-vmwq-366v/GHSA-47fc-vmwq-366v.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}