Arbitrary Code Injection Affecting pytorch package, versions <1.13.1+dfsg-1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.29% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PYTORCH-18321551
  • published27 Jul 2026
  • disclosed26 Nov 2022

Introduced: 26 Nov 2022

CVE-2022-45907  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Echo:latest pytorch to version 1.13.1+dfsg-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pytorch package and not the pytorch package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.

CVSS Base Scores

version 3.1