/

CVE-2026-120344

Severity:

CRITICAL RISK

(10.0)

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

CVE-2026-120344

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Command 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 command injection vulnerability in the WAVLINK WN551X3-A WireGuard CLI Group Handler can occur when the group_name argument is manipulated and passed to a system command in /bin/ioos.

If the affected function is reachable and accepts attacker-controlled input, a remote attacker may be able to execute operating-system commands on the device.

A command injection vulnerability in the WAVLINK WN551X3-A WireGuard CLI Group Handler can occur when the group_name argument is manipulated and passed to a system command in /bin/ioos.

If the affected function is reachable and accepts attacker-controlled input, a remote attacker may be able to execute operating-system commands on the device.

Affected context

The reported issue affects the WAVLINK WN551X3-A running M51X3_V251020-WO-182e965, in the WireGuard CLI Group Handler. It involves the system function in /bin/ioos, where manipulation of the group_name argument may result in command injection. Exploitability depends on whether the relevant handler is reachable and how the device controls access to it.

The reported issue affects the WAVLINK WN551X3-A running M51X3_V251020-WO-182e965, in the WireGuard CLI Group Handler. It involves the system function in /bin/ioos, where manipulation of the group_name argument may result in command injection. Exploitability depends on whether the relevant handler is reachable and how the device controls access to it.

Exploit preconditions

  • Attack surface: The WireGuard CLI Group Handler in /bin/ioos, reportedly reachable remotely
  • Required access: The description does not establish whether authentication or other authorization is required; this depends on the device's configuration and access controls
  • Trigger point: Processing of the group_name argument by the affected function
  • Why exploitation is possible: Attacker-controlled argument data may reach a system command without sufficient separation from command syntax
  • Attack surface: The WireGuard CLI Group Handler in /bin/ioos, reportedly reachable remotely
  • Required access: The description does not establish whether authentication or other authorization is required; this depends on the device's configuration and access controls
  • Trigger point: Processing of the group_name argument by the affected function
  • Why exploitation is possible: Attacker-controlled argument data may reach a system command without sufficient separation from command syntax

Why this happens

The reported behavior is consistent with constructing or invoking an operating-system command using input that is not safely separated from command syntax. When group_name is incorporated into a command executed through a system interface, special input may alter the command's behavior. This maps primarily to CWE-78: Improper Neutralization of Special Elements used in an OS Command and more broadly to CWE-77: Improper Neutralization of Special Elements used in a Command.

The reported behavior is consistent with constructing or invoking an operating-system command using input that is not safely separated from command syntax. When group_name is incorporated into a command executed through a system interface, special input may alter the command's behavior. This maps primarily to CWE-78: Improper Neutralization of Special Elements used in an OS Command and more broadly to CWE-77: Improper Neutralization of Special Elements used in a Command.

Potential impact

  • An attacker may execute commands with the privileges of the affected process
  • The device could be compromised or its configuration altered
  • Network traffic or services on the device could be disrupted
  • A compromised device could potentially be used as a foothold for further activity
  • An attacker may execute commands with the privileges of the affected process
  • The device could be compromised or its configuration altered
  • Network traffic or services on the device could be disrupted
  • A compromised device could potentially be used as a foothold for further activity

General mitigation guidance

Defensive approaches generally focus on preventing untrusted input from being interpreted as command syntax.

  • Prefer direct APIs or libraries over invoking a shell or system command
  • If a command invocation is necessary, use APIs that pass arguments separately rather than building a command string
  • Validate group_name against a narrow, explicit set of permitted values and reject unexpected input
  • Apply least privilege to the process that handles WireGuard group operations
  • Restrict access to the handler and reduce remote exposure where operationally practical

Defensive approaches generally focus on preventing untrusted input from being interpreted as command syntax.

  • Prefer direct APIs or libraries over invoking a shell or system command
  • If a command invocation is necessary, use APIs that pass arguments separately rather than building a command string
  • Validate group_name against a narrow, explicit set of permitted values and reject unexpected input
  • Apply least privilege to the process that handles WireGuard group operations
  • Restrict access to the handler and reduce remote exposure where operationally practical

How teams detect issues like this

  • Review command execution paths for uses of system and for user-controlled values incorporated into command strings
  • Use static analysis rules to identify input flowing from request or CLI handlers to shell or process APIs
  • Inspect logs and device telemetry for unusual requests to the WireGuard CLI Group Handler or unexpected child-process activity
  • Apply policy checks that prohibit shell-based command construction from untrusted input
  • Include command-injection checks in code review and security testing workflows
  • Review command execution paths for uses of system and for user-controlled values incorporated into command strings
  • Use static analysis rules to identify input flowing from request or CLI handlers to shell or process APIs
  • Inspect logs and device telemetry for unusual requests to the WireGuard CLI Group Handler or unexpected child-process activity
  • Apply policy checks that prohibit shell-based command construction from untrusted input
  • Include command-injection checks in code review and security testing workflows

Sources

SourceLink
github.comgithub.com/senxitoyshuyi-ui/HACKALL/blob/main/WAVLINK_WN551X3-A%20Router/WAVLINK_WN551X3-A_wireguard_cli_group_command_injection.md
vuldb.comvuldb.com/cve/CVE-2026-120344
vuldb.comvuldb.com/submit/919551
vuldb.comvuldb.com/vuln/429669
vuldb.comvuldb.com/vuln/429669/cti

Frequently asked

questions

The report describes the attack as remote. Practical exploitability depends on network reachability and the device's access controls.

The provided details do not specify authentication requirements. Whether access is required depends on how the affected handler is exposed and protected.

Avoid passing input through a shell or system command. Prefer direct APIs, or use argument-separating process APIs with strict validation when command execution is necessary.

Trace untrusted values through command-execution paths, enforce narrow input validation, limit process privileges, and use static analysis and code review policies to flag unsafe command construction.

The report describes the attack as remote. Practical exploitability depends on network reachability and the device's access controls.

The provided details do not specify authentication requirements. Whether access is required depends on how the affected handler is exposed and protected.

Avoid passing input through a shell or system command. Prefer direct APIs, or use argument-separating process APIs with strict validation when command execution is necessary.

Trace untrusted values through command-execution paths, enforce narrow input validation, limit process privileges, and use static analysis and code review policies to flag unsafe command construction.

Find out what's already
exploitable in your codebase.