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… (CVE-2025-55560)
Description
A vulnerability in PyTorch version 2.7.0 can cause a Denial of Service (DoS) when a model uses torch.Tensor.to_sparse() and torch.Tensor.to_dense() operations and is compiled by Inductor. This issue affects versions prior to 2.7.1. A patch is available to address this problem.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In PyTorch version 2.7.0, a Denial of Service vulnerability exists when a model includes both torch.Tensor.to_sparse() and torch.Tensor.to_dense() operations and is compiled using the Inductor compiler. This can cause the application to become unresponsive or crash. The issue is fixed in version 2.7.1.
Potential Impact
The vulnerability can lead to Denial of Service conditions in applications using affected PyTorch versions with models that use the specified tensor operations compiled by Inductor. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade PyTorch to version 2.7.1 or later where this vulnerability is patched. Refer to the official patch at https://github.com/pytorch/pytorch/pull/151897 for details.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-pytorch-2025-55560
- Osv Schema Version
- 1.6.2
- Aliases
- CVE-2025-55560
- Ecosystems
- Bitnami
- Database Specific Severity
- High
Patch Information
Threat ID: 6aa005c7acd9273b49ab5c7e
Added to database: 09/08/2026, 12:55:35 UTC
Last enriched: 09/08/2026, 13:21:30 UTC
Last updated: 10/24/2026, 08:45:09 UTC
Views: 47
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.