PyPA Advisory Database
PYSEC-2025-209
Details
An issue in pytorch v2.7.0 can lead to a Denial of Service (DoS) when a PyTorch model consists of torch.Tensor.to_sparse() and torch.Tensor.to_dense() and is compiled by Inductor.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | torch | All versions before 2.7.1 (fixed in 2.7.1) |