Skip to main content
← All vulnerabilities
CVE-2025-46153PYSEC-2025-202BIT-PYTORCH-2025-46153

PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU impl

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.7.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • torchPyPI

    From 2.6.0 · fixed in 2.7.0

References 5

GitHub · pytorch/pytorch

gist.github.com