CVE-2022-45907
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line c ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami.
Description
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pytorch | 1.13.1 |
| pip::GitHub Security Advisory pip | torch | 1.13.1 |
| debian 11 | pytorch | no fix listed |
| debian 12 | pytorch | 1.13.1+dfsg-1 |
| debian 13 | pytorch | 1.13.1+dfsg-1 |
| debian 14 | pytorch | 1.13.1+dfsg-1 |
| echo | pytorch | 1.13.1+dfsg-1 |
References
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml
- https://github.com/pytorch/pytorch
- https://github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3
- https://github.com/pytorch/pytorch/issues/88868
- https://github.com/pytorch/pytorch/issues/89855
- https://github.com/pytorch/pytorch/pull/89189
- https://github.com/pytorch/pytorch/releases/tag/v1.13.1
- https://nvd.nist.gov/vuln/detail/CVE-2022-45907