/

CVE-2026-120240

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in WAVLINK WN553X1-B

CVE-2026-120240

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Command Execution

Severity:

CRITICAL RISK

(9.9)

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 WN553X1-B affects the WireGuard CLI Group Handler. Remote manipulation of the group_id or group_name arguments may cause operating-system commands to be executed, depending on how the device exposes and processes this functionality.

Affected context

The issue is reported in WAVLINK WN553X1-B firmware V260403_2.0.0, in function sub_41A748 in /bin/ioos, which handles WireGuard CLI group operations. Risk depends on whether an attacker can reach the affected handler remotely and supply values that are incorporated into command execution without adequate safeguards.

Exploit preconditions

  • Attack surface: The WireGuard CLI Group Handler, reported as remotely reachable.
  • Required access: The description does not establish whether authentication or other access controls are required.
  • Trigger point: Processing of the group_id or group_name argument by the affected handler.
  • Why exploitation is possible: Input may be interpreted as part of an operating-system command rather than treated strictly as data.

Why this happens

The reported behavior is consistent with CWE-78: Improper Neutralization of Special Elements used in an OS Command. The underlying bug class occurs when externally controlled values reach an operating-system command without being safely separated from command syntax. CWE-77 is also associated with the report and describes the broader class of command injection.

Potential impact

  • An attacker may execute commands with the privileges of the affected process.
  • Device settings or data could be modified or exposed.
  • The device may be disrupted or rendered unavailable.
  • A compromised device could be used as a foothold for further activity, depending on its network access and privileges.

General mitigation guidance

Mitigation generally focuses on avoiding shell interpretation of externally controlled input.

  • Prefer APIs that pass arguments directly to a process without invoking a shell.
  • Where command execution is necessary, use fixed commands and allowlisted, validated argument values.
  • Treat group identifiers and names as untrusted, and apply strict type, length, and character constraints.
  • Restrict access to the handler and run its process with only the privileges it needs.
  • Use network segmentation and narrow management-plane exposure as defense in depth.

How teams detect issues like this

  • Use static analysis to identify shell or process-execution APIs that receive externally controlled values.
  • Review code paths from group_id and group_name inputs to command construction and execution.
  • Apply code-review checks for shell invocation, unsafe string concatenation, and missing allowlist validation.
  • Monitor device and network logs for unexpected group-handler requests or unusual process activity.
  • Enforce policies that prohibit shell-based command construction from untrusted input; automated review tools may help identify candidate patterns.

Sources

SourceLink
github.comgithub.com/senxitoyshuyi-ui/HACKALL/blob/main/WAVLINK%20WN553X1-B%20Router/WAVLINK_WN553X1-B_wireguard_cli_group_command_injection.md
vuldb.comvuldb.com/cve/CVE-2026-120240
vuldb.comvuldb.com/submit/919251
vuldb.comvuldb.com/vuln/429599
vuldb.comvuldb.com/vuln/429599/cti

Frequently asked

questions

The report says the attack may be performed remotely. Practical exploitability depends on whether the affected handler is reachable and what access controls apply.

The provided description does not specify authentication requirements. Those depend on the device's configuration and access controls.

Avoid passing user-controlled strings through a shell. Prefer direct process APIs with fixed commands and strictly validated arguments.

Treat all externally supplied values as untrusted, use allowlists and safe process APIs, review command-execution paths, and limit the privileges and network exposure of management services.

Find out what's already
exploitable in your codebase.