PyTorchPYSEC-2025-202
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.
Medium5.3CVE-2025-46153 · Published Sep 25, 2025 · updated May 20, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| torch PyPI | >= 2.6.0, < 2.7.0 | 2.7.0 |
Details and references
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.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Severity from
- the CVSS score
- Also known as
- BIT-pytorch-2025-46153, CVE-2025-46153