CVE-2022-45907: linuxfoundation pytorch Improper Control of Generation of Code
Vulnerability summary
CVE-2022-45907 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in linuxfoundation pytorch. EPSS estimates a 1.65% chance of exploitation in the next 30 days, higher than 77.3% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?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 versions- 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.65%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
Increase +0.30 pp
From 1.34% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPytorch
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
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