CVE-2025-2998

Public Exploit
PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption

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.

Category

4.8
CVSS
Severity: Medium
CVSS 4.0 •
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.02%
Vendor Advisory github.com Vendor Advisory github.com
Affected: n/a PyTorch
Published at:
Updated at:

References

Link Tags
https://vuldb.com/?id.302047 technical description third party advisory vdb entry
https://vuldb.com/?ctiid.302047 signature permissions required vdb entry
https://vuldb.com/?submit.524151 third party advisory vdb entry
https://github.com/pytorch/pytorch/issues/149622 vendor advisory issue tracking
https://github.com/pytorch/pytorch/issues/149622#issue-2935495265 vendor advisory exploit issue tracking

Frequently Asked Questions

What is the severity of CVE-2025-2998?
CVE-2025-2998 has been scored as a medium severity vulnerability.
How to fix CVE-2025-2998?
To fix CVE-2025-2998, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-2998 being actively exploited in the wild?
It is possible that CVE-2025-2998 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-2998?
CVE-2025-2998 affects n/a PyTorch.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.