A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-4287

CVE-2025-4287: PyTorch NCCL DoS Vulnerability

CVE-2025-4287 is a denial of service flaw in PyTorch 2.6.0+cu124 affecting the torch.cuda.nccl.reduce function that enables local DoS attacks. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-4287 Overview

A denial of service vulnerability has been identified in PyTorch version 2.6.0+cu124. The vulnerability exists in the torch.cuda.nccl.reduce function within the torch/cuda/nccl.py file. An attacker with local access can manipulate inputs to this function to cause improper resource handling, resulting in a denial of service condition. The exploit has been publicly disclosed, and a patch has been made available.

Critical Impact

Local attackers can exploit improper input validation in the CUDA NCCL reduce function to cause denial of service, potentially disrupting GPU-accelerated machine learning workloads.

Affected Products

  • PyTorch 2.6.0+cu124

Discovery Timeline

  • 2025-05-05 - CVE-2025-4287 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2025-4287

Vulnerability Analysis

This vulnerability is classified under CWE-404 (Improper Resource Shutdown or Release). The torch.cuda.nccl.reduce function in PyTorch's CUDA NCCL implementation lacks proper input validation, allowing malicious inputs to trigger improper resource handling. When exploited, this causes denial of service by disrupting normal GPU operations in distributed computing scenarios.

The vulnerability affects the NVIDIA Collective Communications Library (NCCL) wrapper used for multi-GPU and multi-node deep learning operations. The NCCL reduce operation is commonly used in distributed training to aggregate gradients across multiple GPUs, making this a significant concern for organizations running distributed machine learning workloads.

Root Cause

The root cause is insufficient validation of operation types passed to the NCCL reduce function. The original implementation did not properly verify that the operation parameter corresponds to valid NCCL reduction operations before processing, leading to improper resource handling when invalid operations are supplied.

Attack Vector

The attack requires local access to the system running PyTorch. An attacker can craft malicious inputs to the torch.cuda.nccl.reduce function to trigger the denial of service condition. Since PyTorch is commonly used in shared computing environments and machine learning pipelines, an attacker with access to submit jobs or scripts could potentially exploit this vulnerability to disrupt GPU compute resources.

python
# Security patch in torch/cuda/nccl.py - Add more check for torch.cuda.nccl
# Source: GitHub Commit

 from collections.abc import Sequence
 from typing import Optional, Union
 
-import torch.cuda
+import torch
 
 
 __all__ = ["all_reduce", "reduce", "broadcast", "all_gather", "reduce_scatter"]
 
-SUM = 0  # ncclRedOp_t
+
+# ncclRedOp_t
+SUM = 0  # ncclSum
+
+VALID_OPS = {SUM}
 
 
 def is_available(tensors):

Source: GitHub Commit Notice

Detection Methods for CVE-2025-4287

Indicators of Compromise

  • Unexpected crashes or hangs in PyTorch CUDA operations during distributed training
  • Abnormal GPU resource utilization patterns or resource exhaustion
  • Error logs indicating failures in NCCL reduce operations with invalid operation types
  • Unusual process behavior in Python scripts utilizing torch.cuda.nccl functions

Detection Strategies

  • Monitor system logs for repeated failures in PyTorch CUDA NCCL operations
  • Implement application-level logging around NCCL function calls to detect invalid inputs
  • Use runtime monitoring tools to track GPU resource utilization anomalies
  • Audit Python scripts and machine learning pipelines for suspicious calls to NCCL functions

Monitoring Recommendations

  • Enable verbose logging for PyTorch CUDA operations in production environments
  • Set up alerts for GPU process crashes or abnormal terminations
  • Monitor distributed training job health metrics for unexpected failures
  • Review access logs to identify unauthorized users executing GPU workloads

How to Mitigate CVE-2025-4287

Immediate Actions Required

  • Apply the security patch identified by commit 5827d2061dcb4acd05ac5f8e65d8693a481ba0f5
  • Review and restrict local access to systems running PyTorch with CUDA support
  • Audit machine learning pipelines for untrusted input handling in NCCL operations
  • Upgrade to a patched version of PyTorch when available from the official repository

Patch Information

A patch has been developed and is available via GitHub Pull Request. The fix introduces a VALID_OPS set that validates reduction operations before processing, preventing invalid operations from causing denial of service. The patch is identified by commit hash 5827d2061dcb4acd05ac5f8e65d8693a481ba0f5.

For additional technical details, refer to the GitHub Issue Discussion.

Workarounds

  • Restrict execution of untrusted code in environments with PyTorch CUDA enabled
  • Implement input validation wrappers around NCCL function calls in custom code
  • Isolate GPU compute workloads using containerization to limit blast radius
  • Monitor and limit the ability of non-privileged users to execute GPU-accelerated code
bash
# Configuration example - Verify PyTorch version and check for vulnerability
python -c "import torch; print(f'PyTorch Version: {torch.__version__}')"

# Check if CUDA NCCL is available
python -c "import torch; print(f'NCCL Available: {torch.cuda.nccl.is_available([torch.zeros(1).cuda()])}')"

# Apply patch by upgrading PyTorch (when patched version is released)
pip install --upgrade torch

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPytorch

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-404
  • Technical References
  • GitHub Commit Notice

  • GitHub Issue Discussion

  • GitHub Issue Detail

  • GitHub Pull Request

  • VulDB CTII ID #307394

  • VulDB #307394

  • VulDB Submission #553644
  • Related CVEs
  • CVE-2024-31580: PyTorch Heap Buffer Overflow DoS Flaw

  • CVE-2025-3730: PyTorch CTC Loss DOS Vulnerability

  • CVE-2025-2953: PyTorch Denial of Service Vulnerability

  • CVE-2026-24747: PyTorch weights_only RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use