CVEfocus › CVE database › CVE-2022-45907

CVE-2022-45907

CVSS 9.8 CriticalEPSS 1.6% (higher than 77% of CVEs)Published 2022-11-26Updated 2025-04-25Assigner: mitre

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

CWE-94

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pytorchFix pendingUBUNTU-CVE-2022-45907
Ubuntu 26.04pytorchUnder investigationUBUNTU-CVE-2022-45907
Ubuntu 25.10pytorchWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-45907
Ubuntu 22.04pytorchUnder investigationUBUNTU-CVE-2022-45907
Debian 14pytorchFixed1.13.1+dfsg-1DEBIAN-CVE-2022-45907
Debian 13pytorchFixed1.13.1+dfsg-1DEBIAN-CVE-2022-45907
Debian 12pytorchFixed1.13.1+dfsg-1DEBIAN-CVE-2022-45907
PyPI librarytorchFixed1.13.1PYSEC-2022-43015

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.