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-2019-25261

CVE-2019-25261: AnyDesk Privilege Escalation Vulnerability

CVE-2019-25261 is a privilege escalation flaw in AnyDesk 5.4.0 caused by an unquoted service path. Local attackers can exploit this to gain elevated system privileges. This post covers technical details, affected versions, impact, and mitigation.

Published: February 6, 2026

CVE-2019-25261 Overview

CVE-2019-25261 is an unquoted service path vulnerability affecting AnyDesk 5.4.0 on Windows systems. This security flaw exists in the Windows service configuration where the service executable path contains spaces but is not enclosed in quotation marks. This misconfiguration allows local attackers to potentially inject malicious executables into the service's execution path, enabling privilege escalation to SYSTEM-level access.

When Windows attempts to start a service with an unquoted path containing spaces, it sequentially attempts to execute binaries at each space-delimited segment of the path. An attacker with write access to any of these intermediate directory locations can place a malicious executable that Windows will execute with the service's elevated privileges instead of the intended AnyDesk binary.

Critical Impact

Local attackers can exploit the unquoted service path to achieve privilege escalation, potentially gaining SYSTEM-level access on affected Windows systems running AnyDesk 5.4.0.

Affected Products

  • AnyDesk 5.4.0 for Windows

Discovery Timeline

  • 2026-02-03 - CVE CVE-2019-25261 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2019-25261

Vulnerability Analysis

The vulnerability stems from improper handling of the service executable path in AnyDesk 5.4.0's Windows service registration. According to CWE-428 (Unquoted Search Path or Element), when software does not properly quote paths containing spaces, the operating system's path parsing logic can be exploited.

In Windows, when a service path like C:\Program Files\AnyDesk\AnyDesk.exe is registered without enclosing quotation marks, the Windows Service Control Manager (SCM) interprets the path ambiguously. Windows will attempt to execute in the following order:

  1. C:\Program.exe
  2. C:\Program Files\AnyDesk\AnyDesk.exe

If an attacker has write permissions to C:\, they can place a malicious executable named Program.exe at that location. When the AnyDesk service starts (typically at system boot or upon demand), Windows will execute the attacker's malicious binary with SYSTEM privileges before reaching the legitimate AnyDesk executable.

Root Cause

The root cause is the failure to enclose the service binary path in quotation marks during service registration. The Windows registry entry for the AnyDesk service stores the ImagePath value without proper quoting, enabling the path traversal exploitation technique. This is a classic example of insecure default configuration in Windows service deployment.

Attack Vector

This vulnerability requires local access to the target system. An attacker must have the ability to write files to a directory in the unquoted service path (such as C:\ for Program.exe or C:\Program Files\ for AnyDesk.exe). The attack is typically executed by:

  1. Identifying the unquoted service path via Windows service enumeration
  2. Determining write permissions on intermediate path locations
  3. Placing a malicious executable at a location Windows will attempt to execute first
  4. Waiting for or triggering a service restart

The malicious executable will then run with the same privileges as the AnyDesk service (typically SYSTEM), granting the attacker full control over the affected system.

Detection Methods for CVE-2019-25261

Indicators of Compromise

  • Unexpected executables named Program.exe, AnyDesk.exe, or similar variants in root directories (C:\) or C:\Program Files\
  • Unusual service behavior or startup failures for the AnyDesk service
  • Newly created files in directories along the AnyDesk service path with recent timestamps
  • Process execution logs showing unexpected binaries running with SYSTEM privileges

Detection Strategies

  • Use PowerShell or WMI queries to enumerate services with unquoted paths: Get-WmiObject win32_service | Where-Object {$_.PathName -notmatch '^"' -and $_.PathName -match ' '}
  • Monitor file creation events in high-privilege directories such as C:\ and C:\Program Files\
  • Implement application whitelisting to prevent unauthorized executable execution
  • Deploy endpoint detection solutions that can identify privilege escalation attempts

Monitoring Recommendations

  • Enable Windows Security Event logging for service creation and modification events (Event ID 7045)
  • Monitor for process creation events where parent process is services.exe but the child process is unexpected
  • Configure file integrity monitoring on directories in the AnyDesk service path
  • Alert on any executable creation in root directories or Program Files outside normal software installation patterns

How to Mitigate CVE-2019-25261

Immediate Actions Required

  • Verify if your AnyDesk installation is version 5.4.0 by checking the application's Help > About menu or inspecting the file properties
  • Manually correct the service path by adding quotation marks around the ImagePath registry value
  • Audit write permissions on C:\ and C:\Program Files\ directories to ensure only administrators have write access
  • Update AnyDesk to the latest available version that addresses this configuration issue

Patch Information

AnyDesk users should upgrade to a version newer than 5.4.0 that properly quotes the service path during installation. For additional technical details, refer to the VulnCheck AnyDesk Advisory and Exploit-DB #47883.

Workarounds

  • Manually modify the registry to add quotation marks around the service path: Navigate to HKLM\SYSTEM\CurrentControlSet\Services\AnyDesk and enclose the ImagePath value in double quotes
  • Restrict write permissions on C:\ and intermediate directories in the service path to administrators only
  • Implement application control policies to prevent execution of unauthorized binaries
  • Consider uninstalling AnyDesk 5.4.0 if an immediate upgrade is not possible and the software is not critical
bash
# Configuration example - Fix unquoted service path via registry
reg add "HKLM\SYSTEM\CurrentControlSet\Services\AnyDesk" /v ImagePath /t REG_EXPAND_SZ /d "\"C:\Program Files (x86)\AnyDesk\AnyDesk.exe\" --service" /f

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAnydesk

  • SeverityHIGH

  • CVSS Score8.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-428
  • Technical References
  • Anydesk Official Website

  • Exploit-DB #47883

  • VulnCheck Anydesk Advisory
  • Related CVEs
  • CVE-2022-32450: AnyDesk Privilege Escalation Vulnerability

  • CVE-2025-27918: AnyDesk Buffer Overflow Vulnerability

  • CVE-2024-12754: AnyDesk Information Disclosure Vulnerability

  • CVE-2020-13160: AnyDesk Format String 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
  • 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