CVE-2025-55553: PyTorch 2.7.0: DoS via proxy_tensor.py syntax error
HIGHPoC AVAILABLECISA: TRACK*PyTorch 2.7.0 contains a network-exploitable DoS in proxy_tensor.py requiring zero authentication and trivial complexity—any ML inference or training service running this version and reachable over a network can be remotely crashed. Audit all PyTorch deployments for version 2.7.0 immediately and apply the upstream patch (PR #154645) or downgrade to 2.6.x until a patched release is available. Prioritize internet-facing model serving endpoints.
What is the risk?
High risk for organizations with PyTorch 2.7.0 in network-accessible deployments. CVSS 7.5 reflects the zero-auth, low-complexity, unauthenticated network attack vector with full availability impact. proxy_tensor.py is integral to torch.compile and FX graph tracing—core to modern optimized inference pipelines. No confidentiality or integrity impact reduces severity somewhat, but a sustained DoS against production AI inference endpoints can cascade into service-wide failures for any application depending on ML model outputs.
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| PyTorch | pip | — | No patch |
Do you use PyTorch? You're affected.
How severe is it?
What is the attack surface?
What should I do?
6 stepsAudit all environments (prod, staging, CI/CD) for PyTorch 2.7.0 usage across training, serving, and data pipelines.
Apply upstream patch from github.com/pytorch/pytorch/pull/154645 or downgrade to PyTorch 2.6.x until an official patched 2.7.x build is published.
Network-segment ML serving endpoints—restrict direct internet exposure; route through authenticated API gateways.
Implement process health-check monitoring with auto-restart for inference workers to minimize MTTR if triggered.
Add rate limiting and anomaly detection on ML API inputs to slow or detect exploitation attempts.
Pin dependency versions in requirements.txt/pyproject.toml and enforce via supply chain controls (Dependabot, pip-audit).
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2025-55553?
PyTorch 2.7.0 contains a network-exploitable DoS in proxy_tensor.py requiring zero authentication and trivial complexity—any ML inference or training service running this version and reachable over a network can be remotely crashed. Audit all PyTorch deployments for version 2.7.0 immediately and apply the upstream patch (PR #154645) or downgrade to 2.6.x until a patched release is available. Prioritize internet-facing model serving endpoints.
Is CVE-2025-55553 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2025-55553, increasing the risk of exploitation.
How to fix CVE-2025-55553?
1. Audit all environments (prod, staging, CI/CD) for PyTorch 2.7.0 usage across training, serving, and data pipelines. 2. Apply upstream patch from github.com/pytorch/pytorch/pull/154645 or downgrade to PyTorch 2.6.x until an official patched 2.7.x build is published. 3. Network-segment ML serving endpoints—restrict direct internet exposure; route through authenticated API gateways. 4. Implement process health-check monitoring with auto-restart for inference workers to minimize MTTR if triggered. 5. Add rate limiting and anomaly detection on ML API inputs to slow or detect exploitation attempts. 6. Pin dependency versions in requirements.txt/pyproject.toml and enforce via supply chain controls (Dependabot, pip-audit).
What systems are affected by CVE-2025-55553?
This vulnerability affects the following AI/ML architecture patterns: model serving, training pipelines, inference optimization pipelines, MLOps platforms.
What is the CVSS score for CVE-2025-55553?
CVE-2025-55553 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.41%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001AI SoftwareAML.T0029Denial of AI ServiceAML.T0049Exploit Public-Facing ApplicationCompliance Controls Affected
What are the technical details?
Original Advisory
A syntax error in the component proxy_tensor.py of pytorch v2.7.0 allows attackers to cause a Denial of Service (DoS).
Exploitation Scenario
An adversary identifies a target running PyTorch 2.7.0-based model serving—discoverable via HTTP headers, job postings, or open-source CI configs. They craft a malformed tensor or API request that routes through the proxy_tensor.py code path during model tracing or compilation, triggering the syntax error as an uncaught exception that crashes the serving process. With AV:N/AC:L/PR:N/UI:N, no setup is required beyond network reachability. The attacker loops the request to maintain continuous DoS, taking the inference service offline and disrupting any dependent business processes. Secondary impact includes potential SLA violations and forcing engineers to triage and restart services under pressure.
Weaknesses (CWE)
CWE-248 — Uncaught Exception: An exception is thrown from a function, but it is not caught.
- [Requirements] The choice between a language which has named or unnamed exceptions needs to be done. While unnamed exceptions exacerbate the chance of not properly dealing with an exception, named exceptions suffer from the up call version of the weak base class problem.
- [Requirements] A language can be used which requires, at compile time, to catch all serious exceptions. However, one must make sure to use the most current version of the API as new exceptions could be added.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
Timeline
Related Vulnerabilities
CVE-2024-54529.8pytorch-lightning: RCE via deepdiff Delta deserialization
Same package: torchCVE-2023-436549.8TorchServe: SSRF + RCE via unrestricted model URL loading
Same package: torchCVE-2022-459079.8PyTorch: RCE via unsafe eval in JIT annotations
Same package: torchCVE-2022-08459.8pytorch-lightning: code injection enables full RCE
Same package: torchCVE-2024-351989.8TorchServe: URL bypass enables arbitrary model loading
Same package: torch