CVE-2022-45907
CRITICAL 9.8CVSS 3.1PyTorch vulnerable to arbitrary code execution
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
- Published
- 26 Nov 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-77CWE-94
- Also known as
- BIT-pytorch-2022-45907GHSA-47fc-vmwq-366vPYSEC-2022-43015
- Sources
- NVDJSONOSV GHSA-47fc-vmwq-366vJSONOSV PYSEC-2022-43015JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | pytorchcpe:2.3:a:linuxfoundation:pytorch:*:*:*:*:*:python:*:* |
< 1.13.1 | 1.13.1 |
| OSV | PyPI | torch | < 1.13.1 | 1.13.1 |
References
- https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/pytorch/pytorch/issues/88868 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, EVIDENCE, REPORT, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2022-45907 · ADVISORY
- https://github.com/pytorch/pytorch/issues/89855 · WEB
- https://github.com/pytorch/pytorch/pull/89189 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml · WEB
- https://github.com/pytorch/pytorch · PACKAGE
- https://github.com/pytorch/pytorch/releases/tag/v1.13.1 · WEB
- https://github.com/advisories/GHSA-47fc-vmwq-366v · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Nov 2022)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Nov 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Nov 2022)