CVE-2025-2148: Torch PyTorch Tuple Handler Is Vulnerable Vulnerability
LOWCVE-2025-2148 is a LOW (CVSS 5.0) pytorch tuple handler is vulnerable vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Torch libraries in the PyPI ecosystem. The issue involves pytorch tuple handler is vulnerable to memory corruption through manipulation of none argument. Remediation is available in the latest vendor maintenance releases.
CVE-2025-2148 at a Glance
Security Impact
CVSS: 5.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-2148
To remediate this vulnerability, upgrade all affected Torch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install torch>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show torch
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-2148, inspect your installed packages using pip:
pip show torch
Analyze the terminal output to locate any version of Torch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show torch command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Torch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-2148 Affected Torch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
torch
|
PyPI |
≤ 2.6.0
|
|
References
Frequently Asked Questions
What is CVE-2025-2148?
Which Torch versions are affected?
What version fixes CVE-2025-2148?
Is torch affected?
What is the CVSS score of CVE-2025-2148?
What CWE is associated with CVE-2025-2148?
How can I check PyPI dependencies for CVE-2025-2148?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c678-jfcj-6jmf",
"modified" : "2026-06-09T21:06:54Z",
"published" : "2025-03-10T12:30:55Z",
"aliases" : [ "CVE-2025-2148" ],
"summary" : "PyTorch Tuple Handler is Vulnerable to Memory Corruption through Manipulation of None Argument",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "torch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-2148"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/issues/147722"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-189.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pytorch/pytorch"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/blob/b0a67c7495bb11ecb23e556058db059ba48354af/torch/autograd/profiler.py#L990"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.299059"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.299059"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.505959"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-09T21:06:54Z",
"nvd_published_at" : "2025-03-10T12:15:12Z"
}
}