#VU119399 Buffer overflow in PyTorch - CVE-2025-2998

 

#VU119399 Buffer overflow in PyTorch - CVE-2025-2998

Published: December 9, 2025


Vulnerability identifier: #VU119399
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-2998
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
PyTorch
Software vendor:
pytorch

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error when processing untrusted input within the torch.nn.utils.rnn.pad_packed_sequence() function. A remote attacker can trick the victim into passing specially crafted input to the application, trigger memory corruption and perform a denial of service (DoS) attack. 


Remediation

Install updates from vendor's website.

External links