CVE-2025-55560

7.5

PyTorch · PyTorch

A denial of service vulnerability in PyTorch 2.7.0 occurs when specific tensor operations are compiled by Inductor, leading to potential service instability.

Executive summary

A critical denial of service vulnerability in PyTorch version 2.7.0 allows unauthenticated attackers to crash applications by processing specific tensor conversions.

Vulnerability

The vulnerability exists in the Inductor compiler component when processing models that utilize both torch.Tensor.to_sparse() and torch.Tensor.to_dense() methods, resulting in an unauthenticated denial of service condition.

Business impact

Successful exploitation of this vulnerability can result in significant service disruption, as an attacker can trigger a crash in applications relying on the affected PyTorch versions. With a CVSS score of 7.5, the risk is elevated due to the ease of triggering the flaw remotely without requiring authentication, potentially impacting the availability of critical machine learning pipelines and production services.

Remediation

Immediate Action: Review the linked GitHub pull request and monitoring documentation to identify if your environment is currently utilizing the vulnerable PyTorch 2.7.0 release.

Proactive Monitoring: Monitor application logs for unexpected service restarts or crash dumps specifically associated with Inductor compilation tasks or tensor conversion operations.

Compensating Controls: Implement input validation or restrict access to model processing endpoints to ensure only trusted data is passed to the Inductor compiler until a formal security patch is deployed.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

Given the potential for complete service denial, organizations using PyTorch 2.7.0 should prioritize identifying instances of this software within their infrastructure. We recommend tracking the official PyTorch repository for the release of a stable patch and applying it immediately upon availability to prevent potential exploitation.

More PyTorch CVEs

Sources