CVE-2025-2148 PyTorch Tuple torch.ops.profiler._call_end_callbacks_on_jit_fut memory corruption

Low 2.3 Published Updated

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.

PackageAffectedFixed in
pytorch BitnamiFrom 2.6.02.7.0
torch PyPIAll versions to 2.6.0None
torch PyPIAll versions to 2.6.0None
torch PyPIAll versions to 2.6.0-cu124None

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.

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.

Is CVE-2025-2148 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free