Improper resource shutdown or release in PyTorch - CVE-2025-3730
Published: May 13, 2025
Vulnerability identifier: #VU109002
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-3730
CWE-ID: CWE-404
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vendor: pytorch
Affected software:
PyTorch
PyTorch
Detailed vulnerability description
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists in the function torch.nn.functional.ctc_loss of the file aten/src/ATen/native/LossCTC.cpp. A local user can trigger resource exhaustion and perform a denial of service (DoS) attack.
How to mitigate CVE-2025-3730
Install updates from vendor's website.
Sources
- https://github.com/pytorch/pytorch/issues/150835
- https://github.com/pytorch/pytorch/issues/150835#issue-2979082232
- https://github.com/pytorch/pytorch/pull/150981
- https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567
- https://vuldb.com/?ctiid.305076
- https://vuldb.com/?id.305076
- https://vuldb.com/?submit.553645