SonarQube Unquoted Service Path Vulnerability in Windows

Vulnerability

A vulnerability exists in SonarQube version 8.3.1 due to an unquoted service path in the SonarQube service. This flaw allows local attackers to gain SYSTEM privileges by manipulating the service executable path. Exploitation involves replacing the 'wrapper.exe' in the service path with a malicious executable, which can then be executed with elevated privileges during a service restart.

Impact

Exploitation of this vulnerability allows for unauthorized code execution with SYSTEM privileges.

Reproduction

The vulnerability can be reproduced by first verifying the unquoted service path vulnerability using the Windows Management Instrumentation Command-line (WMIC) to check for services that are set to auto-start and have paths not enclosed in quotes. Once the vulnerable service is identified, the service permissions can be checked to confirm it runs with SYSTEM privileges. After confirming the service's vulnerability and permissions, a payload can be created using a tool like 'msfvenom' and named 'wrapper.exe'. This payload should be dropped into the directory containing the legitimate 'wrapper.exe' for the SonarQube service. Finally, the SonarQube service can be restarted, which will trigger the execution of the malicious payload. If the payload was created with 'msfvenom', it can be migrated to another process to maintain access.

Added: Jan 29, 2026, 3:26 PM
Updated: Jan 29, 2026, 4:45 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
2.5
exploitability
4.8
remediation
0.0
relevance
2.5
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.