ADVISORIES

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

EcosystemPackageAffected versions
PyPItorch
All versions before 2.7.1 (fixed in 2.7.1)

References