PyTorch heap buffer overflow vulnerability
CVE-2024-31580 · GHSA-5pcm-hx3q-hm94 · published 2024-04-17 · updated 2025-06-11
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.22%
- Fixed in
- 2.2.0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
PyTorch before v2.2.0 was discovered to contain a heap buffer overflow vulnerability in the component /runtime/vararg_functions.cpp. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.
Upgrade torch to 2.2.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| torch | PyPI | < 2.2.0 | 2.2.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalPyTorch: `torch.load` with `weights_only=True` leads to remote code executiontorch
- CriticalPyTorch vulnerable to arbitrary code executiontorch
- HighPyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Filestorch
- 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.