CVE-2024-48063 Deserialization in n/a
Attackers can execute arbitrary code via unsafe deserialization in PyTorch's RemoteModule, though this is disputed as intended behavior.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-48063?
CVE-2024-48063 is a critical unsafe deserialization vulnerability in n/a, published on 29 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-502
Which versions are affected by CVE-2024-48063?
2 open source packages ship an affected version, including pytorch and torch. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pytorch Bitnami | All versions | 2.5.0 |
torch PyPI | All versions | 2.5.0 |
Products include Linuxfoundation Pytorch.
How do I fix CVE-2024-48063?
Upgrade pytorch to 2.5.0 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2024-48063 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48063 exists.
Other vulnerabilities in n/a
- CVE-2022-45907 PyTorch vulnerable to arbitrary code execution
- CVE-2025-32434 PyTorch: `torch.load` with `weights_only=True` leads to remote code execution
- CVE-2026-24747 PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
- CVE-2024-31583 Pytorch use-after-free vulnerability
- CVE-2025-55551 Denial of service in n/a
Sources
Also known as BIT-pytorch-2024-48063, DEBIAN-CVE-2024-48063, ECHO-7b96-b37e-2be6, GHSA-9v5x-r4g7-gqw3, PYSEC-2024-259, UBUNTU-CVE-2024-48063.