{"cve":"CVE-2025-2998","nvd":{"published":"2025-03-31T14:15:20.370","modified":"2026-06-17T09:08:00.727","status":"Analyzed","description":"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.","cvss_v4":{"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","score":4.8},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3},"cwes":["CWE-119"],"references":["https://github.com/pytorch/pytorch/issues/149622","https://github.com/pytorch/pytorch/issues/149622#issue-2935495265","https://vuldb.com/?ctiid.302047","https://vuldb.com/?id.302047","https://vuldb.com/?submit.524151"],"products":["linuxfoundation:pytorch"],"source":"nvd","synced_at":"2026-10-19T22:00:28.034033815+00:00"},"epss":{"cve":"CVE-2025-2998","score":0.00202,"percentile":0.10156,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f4hp-rmr7-r7v8","url":"https://osv.dev/vulnerability/GHSA-f4hp-rmr7-r7v8","summary":"PyTorch is Vulnerable to Memory Consumption through pad_packed_sequence Function","modified":"2026-06-09T22:11:09.050788278Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<=2.6.0"],"fixed":[]}]},{"id":"PYSEC-2025-192","url":"https://osv.dev/vulnerability/PYSEC-2025-192","summary":"","modified":"2026-06-10T17:02:43.772252479Z","packages":[{"ecosystem":"PyPI","name":"torch","purl":"pkg:pypi/torch","ranges":["<=2.6.0-NA"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}