CVE-2025-2148 PyTorch Tuple torch.ops.profiler._call_end_callbacks_on_jit_fut memory corruption
Remote attackers can trigger memory corruption in PyTorch's profiler callback handler, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-2148?
CVE-2025-2148 is a low-severity memory corruption vulnerability in PyTorch, published on 10 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability was found in PyTorch 2.6.0+cu124. It has been declared as critical. Affected by this vulnerability is the function torch.ops.profiler._call_end_callbacks_on_jit_fut of the component Tuple Handler. The manipulation of the argument None leads to memory corruption. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult.
Weakness: CWE-119
Which versions are affected by CVE-2025-2148?
4 open source packages ship an affected version, including pytorch and torch. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pytorch Bitnami | From 2.6.0 | 2.7.0 |
torch PyPI | All versions to 2.6.0 | None |
torch PyPI | All versions to 2.6.0 | None |
torch PyPI | All versions to 2.6.0-cu124 | None |
Products include Linuxfoundation Pytorch.
How do I fix CVE-2025-2148?
Upgrade pytorch to 2.7.0 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-2148 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-2148 exists.
Other vulnerabilities in PyTorch
- CVE-2024-48063 Deserialization 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
Sources
Also known as BIT-pytorch-2025-2148, DEBIAN-CVE-2025-2148, ECHO-bc4d-ba3e-5162, GHSA-c678-jfcj-6jmf, PYSEC-2025-189, UBUNTU-CVE-2025-2148.