CVE-2022-45907: linuxfoundation pytorch Code Injection
CVSS: 9.8v3.1CriticalModified
AliasesGHSA-47fc-vmwq-366vBIT-pytorch-2022-45907PYSEC-2022-43015UBUNTU-CVE-2022-45907DEBIAN-CVE-2022-45907
Published 26-11-2022Last modified 25-04-2025
Vulnerability summary
CVE-2022-45907 is a critical (CVSS 9.8) Code Injection vulnerability in linuxfoundation pytorch. EPSS estimates a 1.29% chance of exploitation in the next 30 days, higher than 69.8% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)EPSS score
1.29%
0%100%
Low · +0.05 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Timeline
- 26-11-2022PublishedVulnerability first disclosed.
- 25-04-2025Last modifiedVulnerability information updated.
Description
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
CVSS metrics
6 scores · 5 sources · 2 versionsCritical 9.3Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NSourcesSingle source
Critical 9.8Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 5 agree
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.29%
Chance of exploitation in the next 30 days
Percentile
70%
Versus all other CVEs
30-day change
+0.05 pp
From 1.24% on 20-09-2026
20-09-202620-10-2026
EPSS score1.29%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPytorch
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- pytorch< 1.13.1+dfsg-1
Linuxfoundation1 product
- pytorch< 1.13.1
PyPI1 product
- torch< 767f6aa49fe20a2766b9843d01e3b7f7793df6a3 | < 1.13.1
Ubuntu1 product
- pytorchAll versions (No fix recorded)
4 vendors · 4 products
References
12 links- github.com/pytorch/pytorch/issues/88868WEBEVIDENCEREPORTFIXExploitIssue TrackingPatchThird Party Advisory
- github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3WEBFIXREPORTPatchThird Party Advisory
- github.com/pytorch/pytorchPACKAGE