PyTorchGHSA-47fc-vmwq-366v
PyTorch vulnerable to arbitrary code execution
Fix: upgrade to 1.13.1 or later
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).
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| torch PyPI | < 1.13.1 | 1.13.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-77
- Also known as
- BIT-pytorch-2022-45907, CVE-2022-45907, PYSEC-2022-43015
- nvd.nist.gov/vuln/detail/CVE-2022-45907
- github.com/pytorch/pytorch/issues/88868
- github.com/pytorch/pytorch/issues/89855
- github.com/pytorch/pytorch/pull/89189
- github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3
- github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml
- github.com/pytorch/pytorch
- github.com/pytorch/pytorch/releases/tag/v1.13.1