/

CVE-2026-120239

Severity:

CRITICAL RISK

(9.9)

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

CVE-2026-120239

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 WireGuard CLI Handler may let a remote attacker influence operating-system commands by manipulating the file_id argument. The risk arises when the handler is reachable and does not safely validate or pass that argument to command execution.

Affected context

The vulnerability is reported in firmware V260403_2.0.0, in function sub_419DA8 in /bin/ioos, within the WireGuard CLI Handler. It may be exposed when this handler can be reached remotely and processes attacker-controlled file_id values in a way that reaches OS command execution.

Exploit preconditions

  • Attack surface: The WireGuard CLI Handler in the device's /bin/ioos component must be reachable remotely.
  • Required access: The report does not specify whether authentication is required; an attacker must be able to submit input to the handler.
  • Trigger point: Processing the file_id argument in sub_419DA8.
  • Why exploitation is possible: Unsafe handling of the argument in an OS command context may allow input to alter the command being executed.

Why this happens

The reported behavior is OS command injection, mapped primarily to CWE-78: Improper Neutralization of Special Elements used in an OS Command. It may also relate to CWE-77: Improper Neutralization of Special Elements used in a Command, which describes the broader class of unsafe command construction. The underlying insecure pattern is allowing externally influenced data to affect command interpretation rather than treating it strictly as data.

Potential impact

  • An attacker may execute commands with the privileges of the affected process.
  • Device settings or files could be altered, or device availability disrupted.
  • A compromised device could potentially be used as a foothold for further network activity.

General mitigation guidance

Defensive approaches generally focus on avoiding shell-based command construction and reducing the trust placed in externally supplied arguments.

  • Prefer APIs that invoke a specific executable with arguments passed as distinct data, rather than through a shell.
  • Apply strict allowlist validation to identifiers such as file_id, and reject unexpected values.
  • Keep the handler inaccessible from untrusted networks where possible, and use appropriate authentication and access controls.
  • Run the affected process with only the privileges it needs, limiting potential consequences if command handling fails.

How teams detect issues like this

  • Use static analysis to identify shell execution APIs and command strings built from externally influenced values.
  • Review how file_id flows from the request boundary into command construction or process invocation.
  • Apply code review checks and security policies that discourage shell use and require allowlist validation for command arguments.
  • Monitor relevant device and network logs for unusual requests to the WireGuard CLI Handler or unexpected process activity.

Sources

SourceLink
github.comgithub.com/senxitoyshuyi-ui/HACKALL/blob/main/WAVLINK%20WN553X1-B%20Router/WAVLINK_WN553X1-B_wireguard_cli_command_injection.md
vuldb.comvuldb.com/cve/CVE-2026-120239
vuldb.comvuldb.com/submit/919250
vuldb.comvuldb.com/vuln/429598
vuldb.comvuldb.com/vuln/429598/cti

Frequently asked

questions

The report describes the attack as remote. Exploitation depends on the handler being reachable and accepting attacker-controlled input.

The available description does not specify authentication requirements. Access to the vulnerable handler is the key stated prerequisite.

Avoid shell-based command construction; pass validated arguments as data to a process invocation API.

Reduce exposure of command-handling interfaces, validate inputs against strict allowlists, use least-privilege processes, and include command-construction checks in code review and automated analysis.

Find out what's already
exploitable in your codebase.