ADVISORIES

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

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

References