All reports
Critical

PyTorch vulnerable to arbitrary code execution

Affected versions

Version ranges need review.

PyPItorch
Affected versions
<= 1.13.0
Fixed version
1.13.1
PyPItorch
Affected versions
<1.13.1
Fixed version
1.13.1

Exploitation

CVE-2022-45907

Probability of exploitation in the next 30 days: 1.65%

FIRST EPSS · 2026-11-23

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.

Links

Credits

  • WilliamsCJ