Vulnerability · Published Apr 16, 2025 · Assigned by VulDB
CVE-2025-3730PyTorch LossCTC.cpp torch.nn.functional.ctc_loss denial of service
Low 3.3
In plain English
A low-severity security flaw in PyTorch. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pytorch | no fix listed | DEBIAN-CVE-2025-3730 |
| Debian:13 | pytorch | no fix listed | DEBIAN-CVE-2025-3730 |
| Debian:14 | pytorch | 2.12.0+dfsg2-1 | DEBIAN-CVE-2025-3730 |
| PyPI | torch | 2.8.0 | GHSA-887c-mr87-cxwp |
| PyPI | torch | 2.8.0 | PYSEC-2026-1970 |
| Ubuntu:22.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2025-3730 |
| Ubuntu:25.10 | pytorch | no fix listed | UBUNTU-CVE-2025-3730 |
| Ubuntu:26.04:LTS | pytorch | no fix listed | UBUNTU-CVE-2025-3730 |
| Ubuntu:26.10 | pytorch | no fix listed | UBUNTU-CVE-2025-3730 |
Affected products (as reported)
Weakness: CWE-404 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
References
- VDB-305076 | PyTorch LossCTC.cpp torch.nn.functional.ctc_loss denial of service vdb-entry, technical-description
- VDB-305076 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #553645 | pytorch pytorch (in torch.nn.functional.ctc_loss) 2.6.0 Denial of Service third-party-advisory
- https://github.com/pytorch/pytorch/issues/150835 issue-tracking
- https://github.com/pytorch/pytorch/pull/150981 issue-tracking
- https://github.com/pytorch/pytorch/issues/150835#issue-2979082232 exploit, issue-tracking
- https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567 patch