PyTorchGHSA-47fc-vmwq-366v
PyTorch vulnerable to arbitrary code execution
Critical9.8CVE-2022-45907 · Published Nov 26, 2022 · updated Nov 13, 2024
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| torch PyPI | < 1.13.1 | 1.13.1 |
Details and references
In PyTorch before trunk/89695, torch.jit.annotations.parse_type_line can cause arbitrary code execution because eval is used unsafely. The fix for this issue is available in version 1.13.1. There is a release checker in [issue #89855](https://github.com/pytorch/pytorch/issues/89855).
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-77
- Also known as
- BIT-pytorch-2022-45907, CVE-2022-45907, PYSEC-2022-43015
- nvd.nist.gov/vuln/detail/CVE-2022-45907
- github.com/pytorch/pytorch/issues/88868
- github.com/pytorch/pytorch/issues/89855
- github.com/pytorch/pytorch/pull/89189
- github.com/pytorch/pytorch/commit/767f6aa49fe20a2766b9843d01e3b7f7793df6a3
- github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2022-43015.yaml
- github.com/pytorch/pytorch
- github.com/pytorch/pytorch/releases/tag/v1.13.1
More PyTorch advisories
All PyTorch| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Apr 172024 | PyTorch heap buffer overflow vulnerability CVE-2024-31580High7.5fixed in 2.2.0 | High7.5 | 2.2.0 |
| Apr 172024 | Pytorch use-after-free vulnerability CVE-2024-31583High7.8fixed in 2.2.0 | High7.8 | 2.2.0 |
| Apr 192024 | Pytorch before v2.2.0 has an Out-of-bounds Read vulnerability via the component torch/csrc/jit/mobile/flatbuffer_loader.cpp. CVE-2024-31584Medium5.5fixed in 2.2.0 | Medium5.5 | 2.2.0 |
| Oct 292024 | In PyTorch <=2.4.1, the RemoteModule has Deserialization RCE. NOTE: this is disputed by multiple parties because this is intended behavior in PyTorch distributed computing. CVE-2024-48063Critical9.8fixed in 2.5.0 | Critical9.8 | 2.5.0 |
| Mar 102025 | PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument CVE-2025-2148Low5.0no fix yet | Low5.0 | No fix yet |
| Mar 102025 | PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmoid Module CVE-2025-2149Low2.5no fix yet | Low2.5 | No fix yet |