CVE-2022-45907
CRITICAL9.8EPSS 0.83%PyTorch vulnerable to arbitrary code execution
Published: 11/26/2022Modified: 4/28/2026
Description
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
Affected packages (4)
- Bitnami/pytorchfrom 0, < 1.13.1
- Debian/pytorchfrom 0
- PyPI/torchfrom 0, < 1.13.1
- PyPI/torchfrom 0, < 767f6aa49fe20a2766b9843d01e3b7f7793df6a3 | from 0, < 1.13.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-45907
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-45907
- PATCHhttps://github.com/pytorch/pytorch
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml
- WEBhttps://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3
- WEBhttps://github.com/pytorch/pytorch/issues/88868
- WEBhttps://github.com/pytorch/pytorch/issues/89855
- WEBhttps://github.com/pytorch/pytorch/pull/89189
- WEBhttps://github.com/pytorch/pytorch/releases/tag/v1.13.1