Improper Resource Shutdown or Release Affecting torch package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-TORCH-10332643
  • published8 Jun 2025
  • disclosed5 May 2025
  • creditUnknown

Introduced: 5 May 2025

CVE-2025-4287  (opens in a new tab)
CWE-404  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

torch is a Tensors and Dynamic neural networks in Python with strong GPU acceleration

Affected versions of this package are vulnerable to Improper Resource Shutdown or Release through the torch.cuda.nccl.reduce function in the file torch/cuda/nccl.py. An attacker can cause the application to crash by manipulating the function inputs on a local host.

CVSS Base Scores

version 4.0
version 3.1