{"id":"CVE-2022-45907","aliases":["BIT-pytorch-2022-45907","DEBIAN-CVE-2022-45907","EUVD-2022-0340","GHSA-47fc-vmwq-366v","PYSEC-2022-43015","UBUNTU-CVE-2022-45907"],"status":"published","title":"PyTorch vulnerable to arbitrary code execution","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01332,"percentile":0.71326,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-94"],"published":"2022-11-26T00:00:00Z","modified":"2026-10-28T02:30:45Z","fixes":[{"ecosystem":"PyPI","package":"torch","fixed_in":["1.13.1"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"pytorch","fixed_in":["1.13.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"pytorch","fixed_in":["1.13.1+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pytorch","fixed_in":["1.13.1+dfsg-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pytorch","fixed_in":["1.13.1+dfsg-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"torch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.13.0"},{"fixed":"1.13.1"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"pytorch","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.13.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.1+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.1+dfsg-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.1+dfsg-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"torch","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"767f6aa49fe20a2766b9843d01e3b7f7793df6a3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.1"}]}],"versions":["1.0.0","1.0.1","1.0.1.post2","1.1.0","1.1.0.post2","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.0.post2","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","ciflow/periodic/csl/test87519","ciflow/periodic/csltest88761","ciflow/periodic/csltest88275","ciflow/periodic/317eeb8","ciflow/periodic/2a6d37d","ciflow/periodic/3c32","ciflow/periodic/054a2fd","ciflow/periodic/sha-ec5b83","malfet/tag-2ef5611","malfet/tag-317b1a0","malfet/tag-ec6f767","nightly-binary","v1.8.0-rc1","v1.4.0a0","v1.3.0a0","v1.2.0a0","v1.1.0a0","v1.0rc1","v1.0rc0","v1.0.0a0","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-5build1","2.6.0+dfsg-7"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.9.1+dfsg-1~exp1ubuntu2","2.12.1+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pytorch","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-7","2.6.0+dfsg-9","2.9.1+dfsg-1~exp1ubuntu2"]}],"products":[{"vendor":"linuxfoundation","product":"pytorch"}],"references":[{"url":"https://github.com/pytorch/pytorch/issues/88868","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","advisory","report","web","evidence","fix"]},{"url":"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3","tags":["x_transferred","Patch","Third Party Advisory","advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907","tags":["web","advisory"]},{"url":"https://github.com/pytorch/pytorch/issues/89855","tags":["web"]},{"url":"https://github.com/pytorch/pytorch/pull/89189","tags":["web"]},{"url":"https://github.com/pytorch/pytorch/releases/tag/v1.13.1","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-47fc-vmwq-366v","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/45xxx/CVE-2022-45907.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-45907","tags":["advisory"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-45907","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-45907","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T00:00:00Z","modified":"2025-04-25T19:16:18.057Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:31.519788Z"}],"euvd":[{"id":"EUVD-2022-0340","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T00:00:00Z","modified":"2025-04-25T19:16:18Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:02.967137Z"}],"ghsa":[{"id":"GHSA-47fc-vmwq-366v","title":"PyTorch vulnerable to arbitrary code execution","description":"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).","status":"published","published":"2022-11-26T03:30:27Z","modified":"2024-11-13T22:52:23Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"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","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T14:38:18.163845Z"}],"nvd":[{"id":"CVE-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T02:15:10.253Z","modified":"2026-06-17T05:10:58.067Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:07:32.827264Z"}],"osv":[{"id":"CVE-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T00:00:00Z","modified":"2026-10-28T02:30:45.701528378Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:27.481647Z"},{"id":"GHSA-47fc-vmwq-366v","title":"PyTorch vulnerable to arbitrary code execution","description":"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).","status":"published","published":"2022-11-26T03:30:27Z","modified":"2024-11-13T23:01:42.831346Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"vector":"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","level":"critical"}],"cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:36.782754Z"},{"id":"UBUNTU-CVE-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T02:15:00Z","modified":"2026-10-17T12:56:03.481585432Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:53:56.473586Z"},{"id":"BIT-pytorch-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2024-03-06T11:02:51.602Z","modified":"2026-09-08T08:48:24.908557241Z","updated_at":"2026-11-02T15:28:35.111822Z"},{"id":"DEBIAN-CVE-2022-45907","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T02:15:10.253Z","modified":"2026-11-03T06:03:12.833540081Z","updated_at":"2026-11-03T06:42:07.302733Z"},{"id":"PYSEC-2022-43015","description":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","status":"published","published":"2022-11-26T02:15:00Z","modified":"2026-06-10T17:51:27.754911892Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
