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
    • 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-2026-5789

CVE-2026-5789: CivetWeb Privilege Escalation Vulnerability

CVE-2026-5789 is a privilege escalation vulnerability in CivetWeb v1.16 caused by an unquoted service path. Attackers can exploit this to execute code with elevated privileges. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-5789 Overview

CVE-2026-5789 is an unquoted search path vulnerability affecting CivetWeb v1.16, a popular lightweight embedded web server. This vulnerability allows a local attacker to execute arbitrary code with elevated privileges by placing a malicious executable in a directory that is scanned before the intended application path. The flaw exists due to the absence of quotes in the service configuration for the CivetWeb executable path (C:\Program Files\CivetWeb\CivetWeb.exe --).

Critical Impact

Local attackers with limited privileges can achieve arbitrary code execution with elevated system privileges by exploiting the unquoted service path, potentially leading to complete system compromise.

Affected Products

  • CivetWeb v1.16
  • CivetWeb Project CivetWeb (cpe:2.3:a:civetweb_project:civetweb:1.16)

Discovery Timeline

  • 2026-04-21 - CVE-2026-5789 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-5789

Vulnerability Analysis

This vulnerability is classified as CWE-428 (Unquoted Search Path or Element), a configuration flaw that occurs when Windows services or applications reference executable paths containing spaces without proper quoting. When a service path like C:\Program Files\CivetWeb\CivetWeb.exe is not enclosed in quotes, Windows parses the path sequentially, attempting to execute programs at each space-delimited segment before reaching the intended executable.

The exploitation mechanics work as follows: Windows will first attempt to locate C:\Program.exe, then C:\Program Files\CivetWeb\CivetWeb.exe. An attacker with write access to C:\ or C:\Program Files\CivetWeb\ can place a malicious executable named Program.exe that will be executed before the legitimate CivetWeb service.

Root Cause

The root cause of this vulnerability lies in improper service configuration during CivetWeb installation. When the service is registered with the Windows Service Control Manager (SCM), the ImagePath registry value is set without enclosing quotes around the executable path. Since the path C:\Program Files\CivetWeb\CivetWeb.exe contains spaces, Windows path parsing behavior creates opportunities for path interception attacks.

Attack Vector

The attack requires local access to the target system. An attacker with write permissions to directories in the search path can exploit this vulnerability by:

  1. Creating a malicious executable file named Program.exe in the C:\ root directory
  2. Waiting for the CivetWeb service to start or restart
  3. When the service starts, Windows executes the attacker's Program.exe instead of the intended CivetWeb application
  4. The malicious code runs with the privileges of the CivetWeb service, typically SYSTEM level

The vulnerability requires low attack complexity and no user interaction once the malicious file is in place. The attacker needs only local access and low privileges (write access to a directory in the path) to exploit this flaw.

Detection Methods for CVE-2026-5789

Indicators of Compromise

  • Presence of unexpected executables named Program.exe in the C:\ root directory
  • Suspicious Program.exe files in C:\Program Files\ or C:\Program Files\CivetWeb\ directories
  • Unusual process execution chains where service host processes spawn unexpected child processes
  • Modifications to the ImagePath registry value for the CivetWeb service

Detection Strategies

  • Monitor Windows service configurations for unquoted paths containing spaces using PowerShell queries against the registry
  • Implement file integrity monitoring (FIM) for root directories and common path injection locations
  • Use endpoint detection tools to identify unauthorized executables in system directories
  • Scan for services with unquoted paths using tools like wmic service get name,displayname,pathname,startmode | findstr /i /v "C:\Windows\\" | findstr /i /v """

Monitoring Recommendations

  • Enable Windows process creation auditing (Event ID 4688) to track executable launches
  • Configure file system auditing on directories susceptible to unquoted path attacks
  • Implement behavioral detection for privilege escalation patterns involving service exploitation
  • Monitor for changes to service registry entries under HKLM\SYSTEM\CurrentControlSet\Services\

How to Mitigate CVE-2026-5789

Immediate Actions Required

  • Audit all installed services for unquoted paths containing spaces and remediate immediately
  • Remove any suspicious executables from root directories and path injection locations
  • Apply the principle of least privilege to directory permissions, restricting write access to system paths
  • Consider disabling the CivetWeb service until proper remediation can be applied

Patch Information

No vendor patch information is currently available. Organizations should monitor the INCIBE Security Notice for updates regarding official remediation guidance from the CivetWeb project.

Workarounds

  • Manually fix the service path by adding quotes around the ImagePath registry value for the CivetWeb service
  • Restrict write permissions on the C:\ root directory and other directories in the vulnerable path
  • Implement application whitelisting to prevent unauthorized executables from running
  • Use endpoint protection solutions to block execution of unsigned binaries in sensitive directories
bash
# Registry fix to properly quote the CivetWeb service path
reg add "HKLM\SYSTEM\CurrentControlSet\Services\CivetWeb" /v ImagePath /t REG_EXPAND_SZ /d "\"C:\Program Files\CivetWeb\CivetWeb.exe\"" /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/TechCivetweb

  • 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
  • INCIBE Security Notice
  • Related CVEs
  • CVE-2025-9648: CivetWeb Library DoS Vulnerability

  • CVE-2025-55763: CivetWeb URI Parser RCE 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