A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-9844

CVE-2025-9844: Salesforce CLI Privilege Escalation Flaw

CVE-2025-9844 is a privilege escalation vulnerability in Salesforce CLI on Windows caused by an uncontrolled search path element. Attackers can replace trusted executables to gain elevated access. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 26, 2026

CVE-2025-9844 Overview

CVE-2025-9844 is an Uncontrolled Search Path Element vulnerability [CWE-427] affecting Salesforce CLI on Windows. The flaw allows an attacker to replace a trusted executable loaded by the CLI, leading to arbitrary code execution in the context of the user running the CLI. Salesforce CLI versions before 2.106.6 are affected. The issue carries a CVSS 3.1 score of 8.8 and affects confidentiality, integrity, and availability. Exploitation requires low privileges and no user interaction, making it attractive on developer workstations where the CLI is commonly installed.

Critical Impact

An attacker with low-privileged access to a Windows host can plant a malicious executable in a writable directory on the search path, causing Salesforce CLI to execute attacker-controlled code with the invoking user's privileges.

Affected Products

  • Salesforce CLI on Windows, versions prior to 2.106.6

Discovery Timeline

  • 2025-09-23 - CVE-2025-9844 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-9844

Vulnerability Analysis

The vulnerability is classified as Uncontrolled Search Path Element [CWE-427]. Salesforce CLI on Windows resolves one or more executable dependencies without enforcing a fully qualified, trusted path. When the CLI launches, Windows searches directories in a defined order, including the current working directory and entries in PATH. If an attacker can write an executable with a matching name to a directory that appears earlier in the search order than the legitimate binary, the CLI loads the attacker's file instead of the trusted one.

Because the CLI runs with the privileges of the invoking user, the planted executable inherits those privileges. On developer endpoints, this often includes access to source code, signed deployment credentials, OAuth tokens, and connected org sessions. The flaw is local in execution but network-accessible in scoring because the malicious payload can be delivered through any standard distribution channel that lands the file on disk.

Root Cause

The root cause is the CLI's reliance on relative or unqualified executable lookups during process invocation on Windows. Without absolute path resolution or signature verification, Windows search order rules permit a same-named binary in a higher-priority directory to be selected. Writable directories on PATH, or the current working directory during CLI invocation, become viable plant locations.

Attack Vector

An attacker first achieves the ability to write a file to a directory Salesforce CLI will search before reaching the legitimate executable. This may be a user-writable PATH entry, an installer staging directory, or the working directory of a developer shell. The attacker drops a malicious binary using the trusted executable's name. When the user runs a routine sf or sfdx command, Windows loads the planted binary, and the attacker gains code execution. Stolen Salesforce credentials and CI/CD secrets are typical post-exploitation objectives.

No verified public exploit code is available. Refer to the Salesforce Help Article for vendor technical details.

Detection Methods for CVE-2025-9844

Indicators of Compromise

  • Unexpected executable files appearing in user-writable directories listed in the system or user PATH.
  • Salesforce CLI processes (sf.exe, sfdx.exe) spawning child processes from non-standard install paths.
  • Outbound network connections initiated by CLI-adjacent binaries to domains unrelated to Salesforce infrastructure.

Detection Strategies

  • Inventory installed Salesforce CLI versions across Windows endpoints and flag any below 2.106.6.
  • Hunt for executables in PATH directories that share names with binaries the CLI invokes, but reside outside the official install directory.
  • Alert on file-write events to user-writable PATH locations followed by execution of the same file within a short window.

Monitoring Recommendations

  • Enable process creation and command-line auditing on developer workstations, and forward events to a centralized analytics platform.
  • Monitor PATH environment variable modifications for both system and user scopes.
  • Track Salesforce CLI telemetry and correlate process lineage to detect anomalous parent or child relationships.

How to Mitigate CVE-2025-9844

Immediate Actions Required

  • Upgrade Salesforce CLI to version 2.106.6 or later on all Windows hosts.
  • Audit PATH entries on developer machines and remove or restrict any user-writable directories that precede system paths.
  • Rotate Salesforce credentials, OAuth tokens, and connected app secrets used on potentially exposed workstations.

Patch Information

Salesforce addressed the issue in Salesforce CLI 2.106.6. Apply the update through the standard CLI upgrade workflow or via the package manager used to install the tool. Review the Salesforce Help Article for vendor guidance.

Workarounds

  • Restrict write permissions on every directory listed in the system and user PATH to administrators only.
  • Invoke Salesforce CLI from a controlled working directory that does not contain untrusted files.
  • Apply application allowlisting to block execution of unsigned binaries from user profile directories.
bash
# Verify installed Salesforce CLI version on Windows (PowerShell)
sf --version

# Upgrade to a fixed release
npm install --global @salesforce/cli@latest

# Audit PATH for user-writable directories
$env:Path -split ';' | ForEach-Object {
    if (Test-Path $_) {
        $acl = Get-Acl $_
        [PSCustomObject]@{ Path = $_; Owner = $acl.Owner }
    }
}

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechSalesforce Cli

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-427
  • Technical References
  • Salesforce Help Article
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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