{"id":"CVE-2022-45907","aliases":["CVE-2022-45907","GHSA-47fc-vmwq-366v","BIT-PYTORCH-2022-45907","PYSEC-2022-43015"],"related":[],"kind":"vulnerability","state":"published","title":"PyTorch vulnerable to arbitrary code execution","summary":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.","source":"cvelist"},{"lang":"en","text":"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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"En PyTorch anterior a trunk/89695, torch.jit.annotations.parse_type_line puede causar la ejecución de código arbitrario porque eval se usa de manera insegura.","source":"nvd"}],"published":"2022-11-26T00:00:00.000Z","modified":"2026-09-08T08:48:24.908Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-77","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.1"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.13.1"}],"vendor":"linuxfoundation","product":"pytorch","cpe":"cpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"767f6aa49fe20a2766b9843d01e3b7f7793df6a3"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.1"}],"ecosystem":"PyPI","package":"torch","purl":"pkg:pypi/torch","repo":"https://github.com/pytorch/pytorch","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.13.1"}],"ecosystem":"Bitnami","package":"pytorch","purl":"pkg:bitnami/pytorch","source":"bitnami"}],"references":[{"url":"https://github.com/pytorch/pytorch/issues/88868","tags":["advisory","evidence","exploit","fix","issue-tracking","patch","report","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3","tags":["advisory","fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pytorch/pytorch/issues/89855","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch/pull/89189","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pytorch/pytorch/releases/tag/v1.13.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-47fc-vmwq-366v","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-25T19:15:34.545Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-45907","url":"https://www.cve.org/CVERecord?id=CVE-2022-45907","licence":"CVE Terms of Use","modified":"2025-04-25T19:16:18.057Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-47fc-vmwq-366v","url":"https://github.com/advisories/GHSA-47fc-vmwq-366v","licence":"CC-BY-4.0","modified":"2024-11-13T23:01:42.831Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-45907","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45907","licence":"Public domain","modified":"2026-06-17T05:10:58.067Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-43015","url":"https://osv.dev/vulnerability/PYSEC-2022-43015","licence":"CC-BY-4.0","modified":"2026-06-10T17:51:27.754Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTORCH-2022-45907","url":"https://osv.dev/vulnerability/BIT-PYTORCH-2022-45907","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.908Z"}],"updatedAt":"2026-11-25T22:58:17.078Z","epss":{"score":0.01647,"percentile":0.77186,"date":"2026-12-01T12:00:22.000Z"}}