# CVE-2025-3730: PyTorch LossCTC.cpp torch.nn.functional.ctc\_loss denial of service

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-16 · Modified: 2025-05-22
- Aliases: GHSA-887c-mr87-cxwp, BIT-pytorch-2025-3730, PYSEC-2026-1970, UBUNTU-CVE-2025-3730, DEBIAN-CVE-2025-3730, CGA-2v7f-fc6q-25v2, CGA-4h37-7g9r-57jm, CGA-5fwm-xj8j-8g2j, CGA-829j-67rf-wcv6, CGA-82q4-m8cw-968w, CGA-88mx-jrj5-6vxc, CGA-88w2-784m-rpcq, CGA-9cr7-crcm-4295, CGA-9x3g-96gv-xvcr, CGA-fxwg-3vgx-5h28, CGA-h2p6-hmvp-wp5w, CGA-mvhf-jq49-hq39, CGA-p847-8x7x-jr89, CGA-q5rj-xpjc-3rjf, CGA-r36v-8p42-8c76, CGA-rghr-qjpp-8hx3, CGA-rpmp-wgw2-4r4m, CGA-v39p-6qqr-gq8p, CGA-vp8f-r6rh-ccvj, CGA-wgv8-jxcf-53xh, CGA-x4wm-5fgh-mjf5
- Record: https://cvemate.com/vulnerability/CVE-2025-3730 · JSON: https://cvemate.com/vulnerability/CVE-2025-3730/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.338%, percentile 29.161%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- chainguard py3-torch-2.7-cuda-12.8 (Chainguard): \< 2.7.1-r7
- chainguard py3.10-torch-2.3-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-torch-2.7-cuda-12.8 (Chainguard): \< 2.7.1-r7
- chainguard py3.11-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.11-torch-2.7-cuda-12.8 (Chainguard): \< 2.7.1-r7
- chainguard py3.11-torch-cuda-12.8 (Chainguard): \< 2.9.1-r0
- chainguard py3.12-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.12-torch-2.7-cuda-12.8 (Chainguard): \< 2.7.1-r7
- chainguard py3.13-torch-2.6-cuda-12.4 (Chainguard): All versions (No fix recorded)
- chainguard py3.13-torch-2.7-cuda-12.8 (Chainguard): \< 2.7.1-r7
- debian pytorch (Debian): All versions (No fix recorded) \| \< 2.12.0+dfsg2-1
- ubuntu pytorch (Ubuntu): All versions (No fix recorded)
- linuxfoundation pytorch: 2.6.0
- PyPI torch (PyPI): \< 2.8.0

## References

- <https://vuldb.com/?id.305076>
- <https://vuldb.com/?ctiid.305076>
- <https://vuldb.com/?submit.553645>
- <https://github.com/pytorch/pytorch/issues/150835>
- <https://github.com/pytorch/pytorch/pull/150981>
- <https://github.com/pytorch/pytorch/issues/150835#issue-2979082232>
- <https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-3730>
- <https://github.com/pytorch/pytorch/commit/01f226bfb8f2c343f5c614a6bbf685d91160f3af>
- <https://github.com/pytorch/pytorch>
- <https://pypi.org/project/torch>
- <https://github.com/advisories/GHSA-887c-mr87-cxwp>
- <https://ubuntu.com/security/CVE-2025-3730>
- <https://www.cve.org/CVERecord?id=CVE-2025-3730>
- <https://security-tracker.debian.org/tracker/CVE-2025-3730>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3730.json>

---

Data as of 2026-12-05T08:53:31.046Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
