What’s Vulnerable › Vulnerabilities
CVE-2025-46153
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-25 · updated 2026-06-17
- Weakness: CWE-1176
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.
Affected products
- PyTorch: from 2.6.0 before 2.7.0 — fixed in 2.7.0
How to fix
Upgrade to a fixed version: PyTorch 2.7.0. Check the vendor advisory for mitigations.
References
- https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a
- https://gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a
- https://github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0
- https://github.com/pytorch/pytorch/issues/142853
- https://github.com/pytorch/pytorch/pull/143460
Get alerted when CVE-2025-46153 or the next vulnerability affects your stack