# CVE-2022-45907: PyTorch vulnerable to arbitrary code execution

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.65%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-26T00:00:00.000Z
- Modified: 2026-09-08T08:48:24.908Z
- Also known as: GHSA-47fc-vmwq-366v, BIT-PYTORCH-2022-45907, PYSEC-2022-43015
- Weaknesses: CWE-77, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: mitre

## Description

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- torch (PyPI): before 1.13.1; before 767f6aa49fe20a2766b9843d01e3b7f7793df6a3
- linuxfoundation pytorch: before 1.13.1
- pytorch (Bitnami): before 1.13.1

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/pytorch/pytorch/issues/88868> (exploit, advisory, evidence, fix, issue-tracking, patch, report, third-party-advisory, web)
- <https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3> (advisory, fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45907> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-45907](https://www.cve.org/CVERecord?id=CVE-2022-45907), CVE Terms of Use, modified 2025-04-25
- GitHub Advisory Database: [GHSA-47fc-vmwq-366v](https://github.com/advisories/GHSA-47fc-vmwq-366v), CC-BY-4.0, modified 2024-11-13
- NVD: [CVE-2022-45907](https://nvd.nist.gov/vuln/detail/CVE-2022-45907), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43015](https://osv.dev/vulnerability/PYSEC-2022-43015), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-PYTORCH-2022-45907](https://osv.dev/vulnerability/BIT-PYTORCH-2022-45907), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-45907 · Whole record: https://cve.day/CVE-2022-45907.json · Rebuilt by cve.day 2026-11-25T22:58:17.078Z
