PyTorch vulnerable to arbitrary code execution
CVE-2022-45907 · GHSA-47fc-vmwq-366v · published 2022-11-26 · updated 2024-11-13
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.3%
- Fixed in
- 1.13.1
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade torch to 1.13.1 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| torch | PyPI | <= 1.13.0 | 1.13.1 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalPyTorch: `torch.load` with `weights_only=True` leads to remote code executiontorch
- HighPyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Filestorch
- HighPyTorch heap buffer overflow vulnerabilitytorch
- HighPytorch use-after-free vulnerabilitytorch
- MediumPyTorch Improper Resource Shutdown or Release vulnerabilitytorch
- MediumPyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Functiontorch
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.