CVE-2025-3730 Details
Description
A vulnerability, which was classified as problematic, was found in PyTorch 2.6.0. Affected is the function torch.nn.functional.ctc_loss of the file aten/src/ATen/native/LossCTC.cpp. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The name of the patch is 46fc5d8e360127361211cb237d5f9eef0223e567. It is recommended to apply a patch to fix this issue. The security policy of the project warns to use unknown models which might establish malicious effects.
A denial-of-service vulnerability has been identified in PyTorch version 2.6.0. The issue arises in the CTC (Connectionist Temporal Classification) loss function when it is called with empty tensors on a CUDA device. This situation leads to a floating-point exception, causing a core dump. In contrast, the same operation on a CPU correctly raises an error without crashing. The vulnerability can be exploited locally by invoking the CTC loss function with specific parameters that include empty tensors for the 'targets', 'input_lengths', and 'target_lengths' arguments, while 'log_probs' is an empty tensor as well.
Users can upgrade to PyTorch versions 2.6.1 or 2.7.1, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pytorch/pytorch/issues/150835 | CISA-ADP | ExploitIssue TrackingVendor Advisory |
| https://github.com/pytorch/pytorch/issues/150835 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/pytorch/pytorch/issues/150835#issue-2979082232 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://github.com/pytorch/pytorch/pull/150981 | [email protected] | Issue TrackingPatch |
| https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567 | [email protected] | Patch |
| https://vuldb.com/?ctiid.305076 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.305076 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.553645 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-404 | Improper Resource Shutdown or Release | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linuxfoundation pytorch | 2.6.0 - |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 28, 2025 | Initial Analysis | [email protected] |
| May 22, 2025 | CVE Modified | [email protected] |
| Apr 17, 2025 | CVE Modified | CISA-ADP |
| Apr 16, 2025 | New CVE Received | [email protected] |