
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5789 is an unquoted search path vulnerability (CWE-428) in CivetWeb v1.16 that allows a local attacker with low privileges to execute arbitrary code with elevated privileges. The flaw exists because the Windows service configuration references the executable path C:\Program Files\CivetWeb\CivetWeb.exe -- without enclosing quotes, enabling Windows path resolution abuse. It was disclosed on April 21, 2026, by Spain's National Cybersecurity Institute (INCIBE) and assigned a CVSS v3.1 score of 7.8 (High) and a CVSS v4.0 score of 8.5 (High) (GitHub Advisory, INCIBE Advisory).
The root cause is CWE-428 (Unquoted Search Path or Element): when a Windows service executable path contains spaces and is not enclosed in quotes, the Windows Service Control Manager attempts to resolve the path by testing each space-delimited segment as a potential executable. For the path C:\Program Files\CivetWeb\CivetWeb.exe, Windows will first attempt to execute C:\Program.exe, then C:\Program Files\CivetWeb.exe, before reaching the intended binary. An attacker with write access to any of these intermediate directories can place a malicious executable (e.g., Program.exe) that will be executed instead. Exploitation requires only low-privilege local access and no user interaction, and is triggered when the CivetWeb service is restarted (GitHub Advisory, INCIBE Advisory).
Successful exploitation results in arbitrary code execution with the elevated privileges of the CivetWeb Windows service, leading to high impact on confidentiality, integrity, and availability of the affected system. An attacker can achieve full system compromise, including credential theft, data exfiltration, installation of persistent backdoors, or disruption of service. Because the malicious code runs with service-level (potentially SYSTEM) privileges, the attacker can bypass standard user-level access controls and potentially pivot to other systems on the network (GitHub Advisory, Red Hat Bugzilla).
No public proof-of-concept exploit code has been identified, and there is no evidence of active in-the-wild exploitation at this time (GitHub Advisory). The EPSS score is approximately 0.014–0.017%, placing it in the 4th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.
sc query or wmic service get name,pathname to enumerate service configurations and confirm the unquoted path.C:\Program Files\CivetWeb\CivetWeb.exe -- (unquoted) by running sc qc CivetWeb and inspecting the BINARY_PATH_NAME field.C:\Program.exe requires write access to C:\, or C:\Program Files\CivetWeb.exe requires write to C:\Program Files\). Use icacls to check permissions.C:\Program.exe or C:\Program Files\CivetWeb.exe).SeShutdownPrivilege, by running sc stop CivetWeb && sc start CivetWeb.Program.exe, CivetWeb.exe in non-standard directories) spawned with SYSTEM or service-account privileges; child processes of services.exe that are not the legitimate CivetWeb binary.C:\Program.exe, C:\Program Files\CivetWeb.exe (outside the actual install directory), or other intermediate path segments; modification timestamps on files in C:\Program Files\ or root C:\ by non-administrative accounts.HKLM\SYSTEM\CurrentControlSet\Services\CivetWeb\ImagePath indicating path modification.The primary remediation is to update CivetWeb from v1.16 to a patched version that correctly quotes the service executable path (GitHub Advisory). As an interim workaround, administrators can manually correct the service configuration by enclosing the path in quotes: update the ImagePath registry value at HKLM\SYSTEM\CurrentControlSet\Services\CivetWeb to "C:\Program Files\CivetWeb\CivetWeb.exe". Additionally, restrict write permissions on C:\ and C:\Program Files\ to authorized administrators only using icacls, and audit all service binary paths on Windows systems using wmic service get name,pathname | findstr /i /v "\"" to identify other unquoted paths (INCIBE Advisory).
The vulnerability was reported and assigned by INCIBE (Spain's National Cybersecurity Institute), which published an advisory on April 21, 2026. Red Hat tracked the issue via Bugzilla (Bug 2460124) and classified it as high severity. Tenable published a Nessus detection plugin (310812) for the vulnerability. No significant broader community debate or notable researcher commentary has been identified beyond standard vulnerability database aggregation (INCIBE Advisory, Red Hat Bugzilla).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."