CVE-2025-3000: Torch PyTorch Is Vulnerable To Memory Vulnerability
LOWCVE-2025-3000 is a LOW (CVSS 5.3) pytorch is vulnerable to memory 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 is vulnerable to memory corruption through its torch.jit.script function. Remediation is available by upgrading affected packages to version 2.13.0.
CVE-2025-3000 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-3000
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>=2.13.0
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-3000, 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 2.13.0), 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-3000 Affected Torch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
torch
|
PyPI |
< 2.13.0
|
2.13.0
|
References
Frequently Asked Questions
What is CVE-2025-3000?
Which Torch versions are affected?
What version fixes CVE-2025-3000?
Is torch affected?
What is the CVSS score of CVE-2025-3000?
What CWE is associated with CVE-2025-3000?
How can I check PyPI dependencies for CVE-2025-3000?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rrmf-rvhw-rf47",
"modified" : "2026-07-17T17:05:47Z",
"published" : "2025-03-31T15:30:48Z",
"aliases" : [ "CVE-2025-3000" ],
"summary" : "PyTorch is vulnerable to memory corruption through its torch.jit.script function",
"details" : "A vulnerability classified as critical has been found in PyTorch 2.6.0. This affects the function torch.jit.script. The manipulation leads to memory corruption. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "torch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.13.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.12.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3000"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/issues/149623"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/issues/149623#issue-2935703015"
}, {
"type" : "WEB",
"url" : "https://github.com/pytorch/pytorch/commit/b90c94991cdf8b87c8f7439f79518e0ef2c4ca4f"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-194.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pytorch/pytorch"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.302049"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.302049"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.524197"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-10T18:02:14Z",
"nvd_published_at" : "2025-03-31T15:15:46Z"
}
}