{"id":"CVE-2025-46153","published":"2025-09-25T00:00:00Z","modified":"2025-09-25T18:33:13Z","title":"PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00422,"percentile":0.37417,"provenance":"source"},"cwes":[{"id":"CWE-1176","name":"Inefficient CPU Computation"}],"references":[{"url":"https://github.com/pytorch/pytorch/issues/142853","tags":[]},{"url":"https://github.com/pytorch/pytorch/pull/143460","tags":[]},{"url":"https://gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a","tags":[]},{"url":"https://github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0","tags":[]},{"url":"https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a","tags":[]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":7.48},{"name":"CVSS severity","points":3.71}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-25T18:30:09.731364Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"torch","vulnerableRanges":[">=2.6.0, <2.7.0"],"patched":["2.7.0"],"from":["PYSEC-2025-202"],"provenance":"source"}],"summary":{"text":"The flaw is in PyTorch versions before 3.7.0, where a bernoulli_p decompose function in decompositions.py is used despite lacking full consistency with the eager CPU implementation. This inconsistency negatively affects nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d when fallback_random=True, and the weakness is classified as inefficient CPU computation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:48Z"},"euvd":{"id":"EUVD-2025-31108","exploited":false,"provenance":"source"}}