PyPA Advisory Database
PYSEC-2025-208
Details
A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a Denial of Service (DoS).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | torch | All versions before 2.7.1 (fixed in 2.7.1) |