# CVE-2025-2998: PyTorch torch.nn.utils.rnn.pad\_packed\_sequence memory corruption

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-31 · Modified: 2025-03-31
- Aliases: GHSA-f4hp-rmr7-r7v8, BIT-pytorch-2025-2998, PYSEC-2025-192, UBUNTU-CVE-2025-2998, DEBIAN-CVE-2025-2998, CGA-269r-6qx9-m9px, CGA-2wp4-hv27-fx6j, CGA-786x-9wh2-8p3q, CGA-92p3-9g65-w82w, CGA-fjc5-p5gg-5gr2, CGA-ghmj-p575-p54g, CGA-h7gq-5c4w-879g, CGA-mf8g-p82w-335g, CGA-x38c-vc4f-jx77
- Record: https://cvemate.com/vulnerability/CVE-2025-2998 · JSON: https://cvemate.com/vulnerability/CVE-2025-2998/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- EPSS: 0.202%, percentile 10.685%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard py3.10-torch-2.3-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.11-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.12-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.13-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- debian pytorch (Debian): All versions (No fix recorded) \| \< 2.12.0+dfsg2-1
- ubuntu pytorch (Ubuntu): All versions (No fix recorded)
- linuxfoundation pytorch: 2.6.0
- PyPI torch (PyPI): ≤ 2.6.0 \| ≤ 2.6.0-NA

## References

- <https://vuldb.com/?id.302047>
- <https://vuldb.com/?ctiid.302047>
- <https://vuldb.com/?submit.524151>
- <https://github.com/pytorch/pytorch/issues/149622>
- <https://github.com/pytorch/pytorch/issues/149622#issue-2935495265>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2998>
- <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://github.com/advisories/GHSA-f4hp-rmr7-r7v8>
- <https://ubuntu.com/security/CVE-2025-2998>
- <https://www.cve.org/CVERecord?id=CVE-2025-2998>
- <https://security-tracker.debian.org/tracker/CVE-2025-2998>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2998.json>

---

Data as of 2026-12-05T09:08:52.191Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
