CVE-2025-46153

Medium

Description

PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d for fallback_random=True.

SeverityMedium
CVSS5.3
Exploit probability—
ProductLinuxfoundation Pytorch
PublishedSep 25, 2025
First seenSep 25, 2025
Weakness typeCWE-1176CWE-1176

How to fix

Update
  • linuxfoundation pytorch2.7.0 or later
  • torch2.7.0 or later

Affected products

ProductAffected versionsFixed in
linuxfoundation pytorch2.6.0 ≤ v < 2.7.02.7.0
torchPyPI2.6.0 ≤ v < 2.7.02.7.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-46153 · Linuxfoundation Pytorch · Dark Radar