Vulnerability · Published Nov 26, 2022 · Assigned by mitre
CVE-2022-45907
Critical 9.8
In plain English
A critical-severity code injection in the pytorch package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.3%top 28.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch | 1.13.1+dfsg-1 | DEBIAN-CVE-2022-45907 |
| Debian:13 | pytorch | 1.13.1+dfsg-1 | DEBIAN-CVE-2022-45907 |
| Debian:14 | pytorch | 1.13.1+dfsg-1 | DEBIAN-CVE-2022-45907 |
| PyPI | torch | 1.13.1 | GHSA-47fc-vmwq-366v |
| PyPI | torch | 1.13.1 | PYSEC-2022-43015 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2022-45907 |
| Ubuntu:25.10 | pytorch | no fix listed | UBUNTU-CVE-2022-45907 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2022-45907 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2022-45907 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H