Advisory

GHSA-887c-mr87-cxwp

Also known as: BIT-pytorch-2025-3730, CVE-2025-3730, PYSEC-2026-1970

Summary

PyTorch Improper Resource Shutdown or Release vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-04-16 21:30 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

torch

PyPI · All systems

Affected

  • introduced 0, fixed 2.8.0 (ecosystem)

Fixed versions

2.8.0

Fix

  • Fixed version 2.8.0
    pip install --upgrade torch==2.8.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences