PT-2022-7517 · Pytorch+1 · Pytorch+1

Lyutoo

·

Published

2022-11-11

·

Updated

2024-03-06

·

CVE-2022-45907

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions PyTorch versions prior to 1.13.1
Description The issue is related to the incorrect management of code generation in the torch.jit.annotations.parse type line() function of the PyTorch machine learning framework. This can allow a remote attacker to execute arbitrary code because eval is used unsafely.
Recommendations For versions prior to 1.13.1, update to version 1.13.1 to resolve the issue. As a temporary workaround, consider restricting the use of the torch.jit.annotations.parse type line() function until a patch is available.

Exploit

Fix

Command Injection

Code Injection

Weakness Enumeration

Related Identifiers

BDU:2024-06840
BIT-PYTORCH-2022-45907
CVE-2022-45907
GHSA-47FC-VMWQ-366V
PYSEC-2022-43015

Affected Products

Debian
Pytorch