Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-3000

CVE-2025-3000: PyTorch Buffer Overflow Vulnerability

CVE-2025-3000 is a critical buffer overflow vulnerability in PyTorch 2.6.0 affecting torch.jit.script that leads to memory corruption. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-3000 Overview

A critical memory corruption vulnerability has been identified in PyTorch 2.6.0, affecting the torch.jit.script function. This vulnerability allows local attackers to trigger memory corruption through manipulation of the JIT scripting functionality. The exploit has been publicly disclosed and may be actively used, making prompt attention essential for organizations utilizing PyTorch in their machine learning workflows.

Critical Impact

Memory corruption in PyTorch's JIT compilation functionality can lead to arbitrary code execution, data corruption, or denial of service in machine learning applications and AI infrastructure.

Affected Products

  • PyTorch 2.6.0 (Python package)
  • Linux Foundation PyTorch distributions
  • Applications and services using torch.jit.script functionality

Discovery Timeline

  • 2025-03-31 - CVE-2025-3000 published to NVD
  • 2025-05-29 - Last updated in NVD database

Technical Details for CVE-2025-3000

Vulnerability Analysis

This vulnerability falls under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), a class of memory safety issues that can have severe security implications. The vulnerability specifically targets the torch.jit.script function, which is responsible for converting Python functions into TorchScript for optimization and deployment purposes.

The JIT (Just-In-Time) compilation system in PyTorch performs complex transformations on Python code to generate optimized machine code. During this process, improper handling of certain inputs leads to memory corruption conditions where data can be written outside intended buffer boundaries.

The local attack vector requires an attacker to have local access to the system running PyTorch, but the manipulation that leads to memory corruption can potentially be triggered through crafted model files or malicious scripts processed by the affected function.

Root Cause

The root cause lies in improper memory boundary validation within the torch.jit.script function implementation. When processing certain inputs during JIT compilation, the function fails to properly validate buffer boundaries, leading to memory corruption. This type of vulnerability (CWE-119) typically occurs when:

  • Buffer size calculations are incorrect or missing
  • Index bounds are not properly validated before memory access
  • Memory allocation does not account for all possible input sizes
  • Pointer arithmetic operates beyond allocated memory regions

Attack Vector

The vulnerability requires local access to exploit, meaning an attacker must have the ability to execute code on the target system. The attack can be performed with low privileges and does not require user interaction. An attacker could exploit this vulnerability by:

  1. Crafting malicious input data or Python scripts that trigger the vulnerable code path in torch.jit.script
  2. Processing specially crafted model files that exploit the memory corruption during JIT compilation
  3. Manipulating parameters passed to the JIT scripting function to cause out-of-bounds memory operations

The memory corruption can result in confidentiality, integrity, and availability impacts as arbitrary memory regions may be read, modified, or corrupted.

Detection Methods for CVE-2025-3000

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using PyTorch JIT functionality
  • Memory-related errors in application logs when torch.jit.script is invoked
  • Anomalous behavior in machine learning model compilation or inference processes
  • Core dumps or memory dump files indicating buffer overflow conditions

Detection Strategies

  • Monitor PyTorch application logs for memory corruption errors, segfaults, or unexpected exceptions during JIT compilation
  • Implement runtime memory analysis tools (Valgrind, AddressSanitizer) in development and staging environments
  • Deploy endpoint detection solutions capable of identifying memory corruption attack patterns
  • Audit usage of torch.jit.script function calls and track input sources

Monitoring Recommendations

  • Enable verbose logging for PyTorch JIT operations to capture compilation errors and anomalies
  • Set up alerts for process crashes in ML pipelines that utilize TorchScript functionality
  • Monitor system memory usage patterns for unexpected allocations during model processing
  • Implement file integrity monitoring on PyTorch model files and scripts

How to Mitigate CVE-2025-3000

Immediate Actions Required

  • Inventory all systems and applications using PyTorch 2.6.0 and the torch.jit.script function
  • Restrict local access to systems running vulnerable PyTorch installations
  • Review and validate all input sources processed by torch.jit.script functionality
  • Consider temporarily disabling JIT scripting in non-critical applications until a patch is available

Patch Information

At the time of publication, review the GitHub Issue Discussion for the latest status on official patches from the PyTorch development team. Organizations should monitor the PyTorch security advisories and upgrade to patched versions as soon as they become available.

Additional technical details and threat analysis are available at the VulDB #302049 Threat Analysis.

Workarounds

  • Implement strict input validation for any data processed by torch.jit.script to reject potentially malicious inputs
  • Use memory-safe compilation environments with ASLR and stack canaries enabled
  • Run PyTorch applications in sandboxed environments or containers to limit the impact of potential exploitation
  • Apply principle of least privilege to limit the potential damage from successful exploitation
  • Consider using torch.compile as an alternative to torch.jit.script where functionally equivalent
bash
# Configuration example - Enable memory protections in Linux environment
# Verify ASLR is enabled
cat /proc/sys/kernel/randomize_va_space
# Should return 2 for full ASLR

# Run PyTorch applications with limited privileges
sudo -u pytorch-user python your_ml_script.py

# Use container isolation for ML workloads
docker run --security-opt=no-new-privileges --read-only pytorch/pytorch:latest

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • 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:L/VI:L/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-119
  • Technical References
  • VulDB #302049 Threat Analysis

  • VulDB #302049

  • VulDB Submission Report
  • Vendor Resources
  • GitHub Issue Discussion

  • GitHub Comment on Issue
  • Related CVEs
  • CVE-2025-2999: PyTorch Buffer Overflow Vulnerability

  • CVE-2026-4538: PyTorch Deserialization Vulnerability

  • CVE-2026-24747: PyTorch weights_only RCE Vulnerability

  • CVE-2025-55551: PyTorch torch.linalg.lu DoS Vulnerability
Default Legacy - Prefooter | 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
  • 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

English