/

CVE-2026-120277

Severity:

CRITICAL RISK

(10.0)

OS Command Injection (CWE-78) in WAVLINK WireGuard Handler

CVE-2026-120277

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Code Execution

Severity:

CRITICAL RISK

(10.0)

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

A remotely reachable WireGuard CLI group handler in WAVLINK WN536AX6-A may pass the group_name argument to an operating-system command without safely handling it. If an attacker can reach and trigger the affected function, this may allow command execution on the device.

Affected context

The reported issue affects WAVLINK WN536AX6-A firmware V260507_2.0.0, in the WireGuard CLI Group Handler function sub_41a1d8 in /bin/ioos. The risk arises when the handler processes the group_name argument in a way that reaches an operating-system command. The description reports remote exploitability, but does not specify authentication requirements or deployment-specific exposure.

Exploit preconditions

  • Attack surface: The affected WireGuard CLI Group Handler must be reachable through the device's exposed interfaces.
  • Required access: The description does not establish whether authentication or prior access is required.
  • Trigger point: Processing of the group_name argument by sub_41a1d8 in /bin/ioos.
  • Why exploitation is possible: The argument is reported to enable OS command injection, indicating it may be incorporated into command execution without adequate separation or validation.

Why this happens

The underlying issue is unsafe handling of data passed into an operating-system command. When an application constructs or invokes a command using attacker-influenced input without preserving the boundary between arguments and command syntax, that input may be interpreted as part of the command. This is classified as CWE-78: Improper Neutralization of Special Elements used in an OS Command; CWE-77 describes the broader command-injection class.

Potential impact

  • An attacker may execute commands with the privileges of the affected process.
  • Device settings or WireGuard-related configuration could be altered.
  • The device may be disrupted or its data exposed.
  • A compromised device could potentially be used as a foothold for further activity on connected networks.

General mitigation guidance

Defensive patterns for command-injection risks include:

  • Avoiding shell command construction when a direct library or API can perform the operation.
  • Passing arguments through APIs that keep them separate from command syntax.
  • Applying strict allowlists and length limits to values such as group names.
  • Using secure-by-default handling that rejects unexpected input rather than attempting to sanitize arbitrary command text.
  • Running the handler with only the privileges it needs and limiting its network exposure.

How teams detect issues like this

  • Use static analysis to identify shell invocation and command construction that incorporates externally influenced values.
  • Review data flows from request or CLI arguments, especially group_name, into process execution APIs.
  • Check that argument boundaries are preserved and that validation occurs before command execution.
  • Apply code-review and build policies that flag shell use with dynamic input and require an approved safe pattern.
  • Where device telemetry is available, monitor for unexpected child processes or anomalous command execution.

Sources

SourceLink
github.comgithub.com/senxitoyshuyi-ui/HACKALL/blob/main/WAVLINK_WN536AX6-A%20Router/WAVLINK_WN536AX6-A_wireguard_cli_group_command_injection.md
vuldb.comvuldb.com/cve/CVE-2026-120277
vuldb.comvuldb.com/submit/919503
vuldb.comvuldb.com/vuln/429621
vuldb.comvuldb.com/vuln/429621/cti

Frequently asked

questions

The report says the attack can be launched remotely. Actual exposure depends on whether the affected handler is reachable in a given deployment.

The available description does not specify authentication or access requirements. Reachability and access controls should be assessed for the affected interface.

Avoid constructing shell commands from variable input. Prefer direct APIs or structured process execution that keeps arguments separate, and strictly validate accepted values.

Minimize untrusted input, enforce allowlists at trust boundaries, review command-execution data flows, and run handlers with least privilege.

Find out what's already
exploitable in your codebase.