The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-25255

CVE-2024-25255: Sublime Text 4 RCE Vulnerability

CVE-2024-25255 is a command injection flaw in Sublime Text 4's New Build System module that enables remote code execution. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 8, 2026

CVE-2024-25255 Overview

Sublime Text 4 contains a command injection vulnerability within the New Build System module. This vulnerability allows attackers to execute arbitrary operating system commands through the build system configuration. It's important to note that multiple third parties have reported this behavior as intended functionality, as the build system is designed to execute shell commands for compilation and build processes.

Critical Impact

Command injection in Sublime Text 4's Build System module could allow attackers to execute arbitrary OS commands with the privileges of the user running the application.

Affected Products

  • Sublime Text 4

Discovery Timeline

  • November 11, 2024 - CVE CVE-2024-25255 published to NVD
  • December 24, 2024 - Last updated in NVD database

Technical Details for CVE-2024-25255

Vulnerability Analysis

This command injection vulnerability (CWE-77) exists in the New Build System module of Sublime Text 4. The build system functionality allows users to define custom build configurations that can execute shell commands. While this is a core feature enabling developers to compile code and run scripts, the implementation can be exploited to inject and execute arbitrary operating system commands.

The vulnerability is accessible over the network and requires no authentication or user interaction, making it particularly concerning in scenarios where malicious build configuration files could be distributed or where users open untrusted projects containing crafted build system definitions.

Root Cause

The root cause stems from how Sublime Text's Build System processes the shell_cmd option and related exec target configurations. When a build system configuration is executed, the commands specified are passed to the operating system shell without sufficient sanitization, allowing command injection through specially crafted build system files.

Attack Vector

An attacker could exploit this vulnerability by crafting a malicious Sublime Text build system configuration file (.sublime-build) that contains injected shell commands. When a victim opens a project containing this malicious build configuration and triggers a build operation, the injected commands execute with the user's privileges.

The attack could be delivered through:

  • Malicious code repositories containing crafted build files
  • Shared project configurations distributed via collaboration platforms
  • Social engineering to convince users to import malicious build configurations

The vulnerability leverages the shell command execution feature documented in Sublime Text's Build Systems Documentation, specifically through the shell_cmd option that passes commands directly to the system shell.

Detection Methods for CVE-2024-25255

Indicators of Compromise

  • Unexpected or unfamiliar .sublime-build files appearing in project directories
  • Build system configurations containing obfuscated or encoded shell commands
  • Unusual system processes spawned as child processes of Sublime Text
  • Network connections initiated from Sublime Text to unknown external hosts

Detection Strategies

  • Monitor file system for creation or modification of .sublime-build files in project directories
  • Implement endpoint detection rules to identify suspicious command execution chains originating from Sublime Text
  • Review build system configurations in new projects before execution
  • Enable process monitoring to detect anomalous child processes spawned by text editors

Monitoring Recommendations

  • Configure endpoint protection to alert on shell command execution from code editor processes
  • Implement file integrity monitoring for Sublime Text configuration directories
  • Review recently accessed projects and their build configurations regularly
  • Deploy behavioral analysis to identify unusual command patterns from development tools

How to Mitigate CVE-2024-25255

Immediate Actions Required

  • Review all existing build system configurations (.sublime-build files) in active projects
  • Avoid opening projects from untrusted sources without first inspecting build configurations
  • Disable automatic build execution features when working with unfamiliar codebases
  • Restrict Sublime Text's ability to execute arbitrary shell commands in sensitive environments

Patch Information

As multiple third parties have reported this behavior as intended functionality, no official patch addressing this vulnerability has been released. The build system's ability to execute shell commands is a core feature designed for developer productivity. Users should exercise caution when working with build configurations from untrusted sources.

For additional context, refer to the Sublime Text Forum Discussion on this CVE.

Workarounds

  • Manually inspect all .sublime-build files in projects before opening them in Sublime Text
  • Use Sublime Text's safe mode or disable plugins when working with untrusted projects
  • Implement organizational policies restricting build system usage to approved configurations only
  • Consider using sandboxed environments when working with code from unknown sources
  • Review and whitelist only trusted build configurations in team environments
bash
# Configuration example
# Review build system files before opening projects
find /path/to/project -name "*.sublime-build" -exec cat {} \;

# Check for suspicious shell commands in build configurations
grep -r "shell_cmd" /path/to/project --include="*.sublime-build"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSublime Text

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.65%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • Exploit Art Command Injection

  • Sublime Text CVE-2024-25255 Discussion

  • Sublime Text Build Systems Documentation

  • Sublime Text Shell Command Options
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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