AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

PyTorchPYSEC-2025-202

PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py...

PyTorch

CVE-2025-46153 · Published Sep 25, 2025 · updated May 20, 2026

Medium5.3
Fix: upgrade to 2.7.0 or later
Source advisory

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 versions

PackageAffectedFixed in
torch
PyPI
>= 2.6.0, < 2.7.02.7.0
Details and references

More PyTorch advisories

All PyTorch