Medium

PyTorch Improper Resource Shutdown or Release vulnerability

  • Disclosed: 16.04.2025
  • Updated: 11.10.2026 15:17

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 name of the patch is 46fc5d8e360127361211cb237d5f9eef0223e567. It is recommended to apply a patch to fix this issue.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) torch < 2.8.0 2.8.0

References

CVSS score 3.3/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Weakness (CWE)
CWE-404
Platform
Python (PyPI)
Package
torch
Disclosed
16.04.2025
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1970 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-887c-mr87-cxwp - CC BY 4.0

Vulnerability history: torch

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (31) in the archive
Total entries
31
First → latest
11.2022 03.2026
Without a fix
9
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 10
  • Medium 11
  • Low 5
  • Unrated 2

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 4
  4. 2025: 24
  5. 2026: 2
Severity:
  1. PyTorch Improper Resource Shutdown or Release vulnerability this entry
    Medium · 3.3 CVE-2025-3730 < 2.8.0 2.8.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.