GHSA-f4hp-rmr7-r7v8 · Severity: medium · Ecosystem: pip — PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function
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.
Conclusion & alert: CVE-2025-2998 is rated Low Risk (21.2/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.16%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.09% | 0.16% | +0.07% |
| 2 | 2026-05-09 | 0.16% | 0.09% | -0.07% |
| 3 | 2026-05-08 | — | 0.16% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.8 | 4.0 | MEDIUM |
|
— | — | [email protected] |
| 5.3 | 3.1 | MEDIUM |
|
1.8 | 3.4 | [email protected] |
| 4.3 | 2.0 | MEDIUM |
|
3.1 | 6.4 | [email protected] |
GHSA-f4hp-rmr7-r7v8 · Severity: medium · Ecosystem: pip — PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2025-2998 not yet assigned priority: Debian including 1 source packages (pytorch), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 3, resolved 2. | https://security-tracker.debian.org/tracker/CVE-2025-2998 |
ubuntu
|
medium | CVE-2025-2998 medium priority: Ubuntu including 1 source packages (pytorch), 7 status rows across 7 suites (focal, jammy, noble, oracular, plucky, questing, upstream): needs-triage 3, DNE 2, ignored 2. | https://ubuntu.com/security/CVE-2025-2998 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| linuxfoundation | pytorch | 2.6.0 | cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/pytorch/pytorch/issues/149622 | Issue Tracking Vendor Advisory |
| https://github.com/pytorch/pytorch/issues/149622#issue-2935495265 | Issue Tracking Vendor Advisory |
| https://vuldb.com/?ctiid.302047 | Permissions Required VDB Entry |
| https://vuldb.com/?id.302047 | Third Party Advisory VDB Entry |
| https://vuldb.com/?submit.524151 | Third Party Advisory VDB Entry |