/

CVE-2026-15733

Severity:

CRITICAL RISK

(9.8)

OS Command Injection (CWE-78) in WGDashboard VPN Server

CVE-2026-15733

Received

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-78

Impact:

Remote Code Execution with Root Privileges

Severity:

CRITICAL RISK

(9.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

WGDashboard versions 4.2.3 and earlier contain multiple operating system command injection flaws that can enable authenticated attackers to execute arbitrary commands.

Because vulnerable commands may run with root privileges, successful exploitation could result in complete compromise of the affected host.

Affected context

The vulnerability affects WGDashboard deployments running version 4.2.3 or earlier where authenticated users can reach functionality that processes attacker-influenced input as operating system commands. The risk is greatest when the dashboard service runs with root privileges and is accessible to users or networks that should not be trusted with administrative command execution.

Exploit preconditions

  • Attack surface: WGDashboard application functionality that invokes operating system commands
  • Required access: Valid authentication and sufficient authorization to reach an affected operation
  • Trigger point: Processing of attacker-controlled input by a vulnerable command execution path
  • Why exploitation is possible: Input is not adequately separated from command syntax before being passed to the operating system
  • Privilege context: Commands may execute with the privileges of the WGDashboard service, including root

Why this happens

The underlying issue is OS command injection, mapped to CWE-78. The application incorporates insufficiently trusted input into operating system command execution without consistently enforcing safe argument boundaries or using a restricted command interface. As a result, input intended as data may be interpreted as executable command syntax.

Potential impact

  • An attacker may execute arbitrary commands on the host
  • The attacker could gain control of the WGDashboard runtime
  • Sensitive configuration, credentials, or network data may be exposed
  • The attacker could modify WireGuard or system settings
  • Host compromise could enable lateral movement or service disruption

General mitigation guidance

Mitigation generally focuses on removing shell interpretation from application workflows and reducing the privileges available to the dashboard service.

Common defensive patterns include:

  • Replacing shell-based execution with APIs that pass fixed command arguments separately
  • Applying strict allowlists and type validation to all command-related inputs
  • Avoiding dynamic command construction and shell evaluation
  • Running the dashboard under a dedicated, least-privileged service account
  • Restricting administrative endpoints and separating routine operations from privileged actions
  • Applying defense-in-depth controls such as host isolation, filesystem restrictions, and network segmentation
  • Treating authenticated input as untrusted unless it has been explicitly authorized for the requested operation

How teams detect issues like this

Organizations can identify command injection risks through:

  • Static analysis rules for shell invocation, dynamic command construction, and unsafe subprocess usage
  • Code review checks for concatenated user input in command strings
  • Runtime monitoring of unexpected child processes, shell launches, and privileged command activity
  • Audit logging for administrative actions and anomalous command execution
  • Policy enforcement that restricts privileged services from invoking arbitrary shells
  • Automated security review tools that flag input flows reaching operating system execution APIs

Sources

SourceLink
github.comgithub.com/Stuub/WGDashboard-v4.3.2-OS-Command-Injection-to-Root-RCE-PoC
github.comgithub.com/WGDashboard/WGDashboard

Frequently asked

questions

It may be exploitable over the network when WGDashboard is reachable and an attacker has authenticated access to an affected function. The exact exposure depends on deployment and access controls.

Yes. The reported condition requires an authenticated attacker, although the necessary account privileges and endpoint access may vary by deployment.

Eliminate shell-based command construction where possible, use fixed argument interfaces, validate inputs with strict allowlists, and run the service without unnecessary privileges.

Review every path from user-controlled input to process execution, enforce authorization at privileged operations, monitor child-process activity, and apply secure coding and automated analysis policies in development pipelines.

Find out what's already
exploitable in your codebase.