CVE-2025-55558

7.5

PyTorch · PyTorch

A buffer overflow in PyTorch v2.7.0 during model compilation via Inductor can lead to a Denial of Service (DoS).

Executive summary

A buffer overflow vulnerability in PyTorch v2.7.0 allows unauthenticated attackers to trigger a Denial of Service condition through specific model compilation patterns.

Vulnerability

The vulnerability is a buffer overflow occurring when PyTorch models utilizing specific layers, including torch.nn.Conv2d and torch.nn.functional.hardshrink, are processed by the Inductor compiler. This flaw can be triggered by an unauthenticated attacker, resulting in a system crash or service unavailability.

Business impact

The exploitation of this vulnerability results in a Denial of Service, which can disrupt critical machine learning pipelines and dependent production applications. Given the CVSS score of 7.5, this high-severity flaw poses a significant risk to operational continuity, potentially causing unexpected downtime for AI-driven services.

Remediation

Immediate Action: Review the provided GitHub issue and pull request references to identify if your specific model architecture is vulnerable, and prioritize restricting access to model compilation endpoints.

Proactive Monitoring: Monitor system logs for unexpected crashes of the Inductor compiler or related processes during model training or inference deployment.

Compensating Controls: Implement input validation to sanitize model configurations and ensure that only trusted model architectures are processed by the Inductor compiler.

Exploitation status

Public Exploit Available: Yes — a proof-of-concept exists as documented in the provided GitHub gist reference.

Analyst recommendation

Organizations utilizing PyTorch v2.7.0 should evaluate their model compilation workflows to determine exposure to this flaw. While a specific patch version is currently not identified in the provided data, users are urged to monitor the upstream PyTorch repository for updates and apply them immediately to prevent potential service disruption.

More PyTorch CVEs

Sources