A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory co
A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | torch | <= 2.6.0-NA | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-2998
- https://github.com/pytorch/pytorch/issues/149622
- https://github.com/pytorch/pytorch/issues/149622#issue-2935495265
- https://github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-192.yaml
- https://github.com/pytorch/pytorch
- https://vuldb.com/?ctiid.302047
- https://vuldb.com/?id.302047
- https://vuldb.com/?submit.524151
- https://github.com/advisories/GHSA-f4hp-rmr7-r7v8
- CVSS vector
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:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X- Weakness (CWE)
CWE-119- Platform
- Python (PyPI)
- Package
torch- Disclosed
- 31.03.2025
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-f4hp-rmr7-r7v8 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2025-192 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: torch
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 31
- First → latest
- 11.2022 03.2026
- Without a fix
- 9
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 10
- Medium 11
- Low 5
- Unrated 2
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 4
- 2025: 24
- 2026: 2
-
A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory co this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.