Skip to content
OpenAdvisories
Critical · 9.8 CVE-2022-45907 BIT-pytorch-2022-45907EUVD-2022-0340GHSA-47fc-vmwq-366vPYSEC-2022-43015

PyTorch vulnerable to arbitrary code execution

Published Nov 26, 2022 · Updated Apr 25, 2025 · Assigned by mitre

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pytorch 1.13.1+dfsg-1 —
Debian 13 pytorch 1.13.1+dfsg-1 —
Debian 12 pytorch 1.13.1+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytorch No fix yet —
Ubuntu 26.04 LTS pytorch No fix yet —
Ubuntu 25.10 pytorch No fix yet —
Ubuntu 22.04 LTS pytorch No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI torch < 1.13.1 1.13.1 GHSA-47fc-vmwq-366v

Advisories 1

References