---
id: CVE-2025-3730
aliases:
  - GHSA-887c-mr87-cxwp
  - BIT-pytorch-2025-3730
  - PYSEC-2026-1970
title: PyTorch Improper Resource Shutdown or Release vulnerability
summary: PyTorch Improper Resource Shutdown or Release vulnerability
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'
vendor: torch
product: torch
ecosystem: pip
affected:
  - torch < 2.8.0
patched:
  - torch 2.8.0
published: '2025-04-16'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:23.660138570Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-887c-mr87-cxwp'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-3730'
  - url: 'https://github.com/pytorch/pytorch/issues/150835'
  - url: 'https://github.com/pytorch/pytorch/pull/150981'
  - url: >-
      https://github.com/pytorch/pytorch/commit/01f226bfb8f2c343f5c614a6bbf685d91160f3af
  - url: >-
      https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567
  - url: 'https://github.com/pytorch/pytorch'
  - url: 'https://vuldb.com/?ctiid.305076'
  - url: 'https://vuldb.com/?id.305076'
  - url: 'https://vuldb.com/?submit.553645'
tags:
  - osv
  - pip
epss: 0.00331
epssPercentile: 0.23737
ingestedAt: '2026-07-08T18:25:47.331Z'
---

## Overview

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 packages

- `torch < 2.8.0`

## Remediation

Upgrade to a patched release:

- `torch 2.8.0`
