Inefficient CPU Computation Affecting torch package, versions [2.6.0,2.7.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (11th 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-13052812
  • published26 Sept 2025
  • disclosed25 Sept 2025
  • creditShaoyu Yang

Introduced: 25 Sep 2025

NewCVE-2025-46153  (opens in a new tab)
CWE-1176  (opens in a new tab)

How to fix?

Upgrade torch to version 2.7.0 or higher.

Overview

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

Affected versions of this package are vulnerable to Inefficient CPU Computation due to inconsistent behavior in the bernoulli_p() function when used in RNG nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d. An attacker can cause unintended or incorrect dropout behavior in neural network layers by triggering fallback to the affected implementation when fallback_random=True.

CVSS Base Scores

version 4.0
version 3.1