CVE-2025-46153 Details
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.
A vulnerability exists in PyTorch versions through 2.6.0 in the handling of dropout layers. The issue arises from the bernoulli_p decomposition function, which is not fully consistent with the eager CPU implementation. This inconsistency affects the nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d layers when the fallback_random option is enabled. As a result, a remote attacker could exploit this vulnerability to execute arbitrary code by manipulating the behavior of these dropout functions.
Users can upgrade to PyTorch version 2.7.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a | [email protected] | Third Party Advisory |
| https://gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a | [email protected] | Third Party Advisory |
| https://github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0 | [email protected] | Product |
| https://github.com/pytorch/pytorch/issues/142853 | [email protected] | Issue Tracking |
| https://github.com/pytorch/pytorch/pull/143460 | [email protected] | Issue TrackingPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1176 | Inefficient CPU Computation | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linuxfoundation pytorch | >= 2.6.0, < 2.7.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 3, 2025 | Initial Analysis | [email protected] |
| Sep 25, 2025 | CVE Modified | CISA-ADP |
| Sep 25, 2025 | New CVE Received | [email protected] |