GHSA-47fc-vmwq-366v

PyTorch vulnerable to arbitrary code execution

At a glance

Published
Updated
CVE
CVE-2022-45907
Aliases
BIT-pytorch-2022-45907, PYSEC-2022-43015
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS_V4
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

Description

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 packages

PackageVersions
PyPI · torchintroduced 0, fixed 1.13.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database