Vulnerability · Published Mar 31, 2025 · Assigned by VulDB
CVE-2025-2999PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption
Medium 5.3
In plain English
A medium-severity memory corruption in PyTorch. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.2%top 89.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
A vulnerability was found in PyTorch 2.6.0. It has been rated as critical. Affected by this issue is the function torch.nn.utils.rnn.unpack_sequence. The manipulation leads to memory corruption. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch | no fix listed | DEBIAN-CVE-2025-2999 |
| Debian:13 | pytorch | no fix listed | DEBIAN-CVE-2025-2999 |
| Debian:14 | pytorch | 2.12.0+dfsg2-1 | DEBIAN-CVE-2025-2999 |
| PyPI | torch | 2.9.1 | GHSA-vgrw-7cvw-pwgx |
| PyPI | torch | no fix listed | PYSEC-2025-193 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2025-2999 |
| Ubuntu:25.10 | pytorch | no fix listed | UBUNTU-CVE-2025-2999 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2025-2999 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2025-2999 |
Affected products (as reported)
Weakness: CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- VDB-302048 | PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption vdb-entry, technical-description
- VDB-302048 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #524198 | pytorch pytorch (torch.nn.utils.rnn.unpack_sequence) torch 2.6.0 Segmentation fault third-party-advisory
- https://github.com/pytorch/pytorch/issues/149622 issue-tracking
- https://github.com/pytorch/pytorch/issues/149622#issue-2935495265 exploit, issue-tracking