CVE-2025-2149: PyTorch Manipulation Of The Argument Scale/zero_point Vulnerability
LOWCVE-2025-2149 is a LOW (CVSS 2.5) manipulation of the argument scale/zero_point vulnerability (CWE-665: Improper Initialization) affecting PyTorch libraries in the PyPI ecosystem. The issue involves manipulation of the argument scale/zero_point leads to improper initialization via quantized sigmoid module. Remediation is available in the latest vendor maintenance releases.
CVE-2025-2149 at a Glance
Security Impact
CVSS: 2.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-2149
To remediate this vulnerability, upgrade all affected PyTorch 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-2149, inspect your installed packages using pip:
pip show torch
Analyze the terminal output to locate any version of PyTorch 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-665: Improper Initialization, where the product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used. In PyTorch, 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-2149 Affected PyTorch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
torch
|
PyPI |
≤ 2.6.0
|
|
References
Frequently Asked Questions
What is CVE-2025-2149?
Which PyTorch versions are affected?
What version fixes CVE-2025-2149?
Is torch affected?
What is the CVSS score of CVE-2025-2149?
What CWE is associated with CVE-2025-2149?
How can I check PyPI dependencies for CVE-2025-2149?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x3gm-94wq-g975",
"modified" : "2026-06-09T21:57:46Z",
"published" : "2025-03-10T15:30:47Z",
"aliases" : [ "CVE-2025-2149" ],
"summary" : "PyTorch: Manipulation of the argument scale/zero_point leads to improper initialization via Quantized Sigmoid Module",
"details" : "A vulnerability was found in PyTorch 2.6.0+cu124. It has been rated as problematic. Affected by this issue is the function nnq_Sigmoid of the component Quantized Sigmoid Module. The manipulation of the argument scale/zero_point leads to improper initialization. The attack needs to be approached locally. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/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-2149"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/issues/147818"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/issues/147818#issue-2877301660"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-190.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pytorch/pytorch"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.299060"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.299060"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.506563"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-665" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-09T21:57:46Z",
"nvd_published_at" : "2025-03-10T13:15:36Z"
}
}