/

CVE-2026-120196

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in WAVLINK WN579X3-D CGI

CVE-2026-120196

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 WN579X3-D affects the port_forward function in /cgi-bin/wapi.cgi. A remote attacker may be able to cause operating-system commands to run by manipulating the Name argument; the exact access requirements are not specified.

A command-injection vulnerability in the WAVLINK WN579X3-D affects the port_forward function in /cgi-bin/wapi.cgi. A remote attacker may be able to cause operating-system commands to run by manipulating the Name argument; the exact access requirements are not specified.

Affected context

The issue is reported in WAVLINK WN579X3-D firmware V250402, in the port_forward function of /cgi-bin/wapi.cgi. It becomes a risk when the function handles the Name argument in a way that allows attacker-controlled data to influence an operating-system command. The description identifies remote attack access but does not establish whether authentication is required.

The issue is reported in WAVLINK WN579X3-D firmware V250402, in the port_forward function of /cgi-bin/wapi.cgi. It becomes a risk when the function handles the Name argument in a way that allows attacker-controlled data to influence an operating-system command. The description identifies remote attack access but does not establish whether authentication is required.

Exploit preconditions

  • Attack surface: The device's remotely reachable /cgi-bin/wapi.cgi interface
  • Required access: A remote path to the affected function; whether authentication or specific privileges are required is not stated
  • Trigger point: Processing of the Name argument by port_forward
  • Why exploitation is possible: Attacker-controlled input may be incorporated into an OS command without adequate separation or validation
  • Exploit availability: Public exploitation is reported, which may increase the likelihood of attempts
  • Attack surface: The device's remotely reachable /cgi-bin/wapi.cgi interface
  • Required access: A remote path to the affected function; whether authentication or specific privileges are required is not stated
  • Trigger point: Processing of the Name argument by port_forward
  • Why exploitation is possible: Attacker-controlled input may be incorporated into an OS command without adequate separation or validation
  • Exploit availability: Public exploitation is reported, which may increase the likelihood of attempts

Why this happens

The underlying issue is command injection: data supplied through the Name argument can affect a command executed by the application. This maps to CWE-78: Improper Neutralization of Special Elements used in an OS Command. More broadly, it is related to CWE-77, which covers improper neutralization of special elements in command inputs. The insecure pattern is using externally influenced data in command construction without safely separating data from executable command syntax.

The underlying issue is command injection: data supplied through the Name argument can affect a command executed by the application. This maps to CWE-78: Improper Neutralization of Special Elements used in an OS Command. More broadly, it is related to CWE-77, which covers improper neutralization of special elements in command inputs. The insecure pattern is using externally influenced data in command construction without safely separating data from executable command syntax.

Potential impact

  • An attacker may execute commands with the privileges of the affected service
  • The device's configuration or operation could be altered
  • Sensitive information stored on or accessible to the device could be exposed
  • The device could be disrupted or used as a foothold for further attacks
  • An attacker may execute commands with the privileges of the affected service
  • The device's configuration or operation could be altered
  • Sensitive information stored on or accessible to the device could be exposed
  • The device could be disrupted or used as a foothold for further attacks

General mitigation guidance

Common defensive patterns focus on removing shell interpretation from request handling and limiting the influence of untrusted input.

  • Prefer direct APIs or process execution interfaces that pass arguments separately rather than constructing shell commands.
  • Where command execution is necessary, use fixed commands and tightly allowlisted, validated argument values.
  • Apply least privilege to the service handling the request and restrict its access to sensitive files and system functions.
  • Reduce exposure of device management interfaces to untrusted networks and require appropriate access controls.
  • Treat request parameters as untrusted, and avoid relying on input filtering as the sole protection.

Common defensive patterns focus on removing shell interpretation from request handling and limiting the influence of untrusted input.

  • Prefer direct APIs or process execution interfaces that pass arguments separately rather than constructing shell commands.
  • Where command execution is necessary, use fixed commands and tightly allowlisted, validated argument values.
  • Apply least privilege to the service handling the request and restrict its access to sensitive files and system functions.
  • Reduce exposure of device management interfaces to untrusted networks and require appropriate access controls.
  • Treat request parameters as untrusted, and avoid relying on input filtering as the sole protection.

How teams detect issues like this

  • Review code paths that pass HTTP or CGI parameters, especially Name, into shell commands or process-launching functions.
  • Use static analysis rules to flag shell invocation and command construction involving externally controlled data.
  • Inspect request and device logs for unusual access to port_forward or anomalous parameter values, while recognizing that logs may not capture all attempts.
  • Apply network and access policies that limit which systems can reach device management interfaces.
  • Include command-injection checks in code review and security testing workflows; automated review tools can help identify risky patterns.
  • Review code paths that pass HTTP or CGI parameters, especially Name, into shell commands or process-launching functions.
  • Use static analysis rules to flag shell invocation and command construction involving externally controlled data.
  • Inspect request and device logs for unusual access to port_forward or anomalous parameter values, while recognizing that logs may not capture all attempts.
  • Apply network and access policies that limit which systems can reach device management interfaces.
  • Include command-injection checks in code review and security testing workflows; automated review tools can help identify risky patterns.

Sources

SourceLink
github.comgithub.com/pipiyyb/cve/blob/main/WN579X3-D(en).md
vuldb.comvuldb.com/cve/CVE-2026-120196
vuldb.comvuldb.com/submit/916941
vuldb.comvuldb.com/vuln/429559
vuldb.comvuldb.com/vuln/429559/cti

Frequently asked

questions

The report says the attack may be performed remotely through the affected CGI function. It does not specify whether authentication or other access conditions are required.

The attacker needs a route to the affected interface and a way to trigger processing of the Name argument. The specific authentication requirements are not provided.

Avoid building shell commands from request data. Prefer APIs that keep arguments separate, and constrain any necessary inputs to a strict allowlist.

Treat all request parameters as untrusted, review command-execution paths, apply least privilege, and restrict access to management interfaces.

The report says the attack may be performed remotely through the affected CGI function. It does not specify whether authentication or other access conditions are required.

The attacker needs a route to the affected interface and a way to trigger processing of the Name argument. The specific authentication requirements are not provided.

Avoid building shell commands from request data. Prefer APIs that keep arguments separate, and constrain any necessary inputs to a strict allowlist.

Treat all request parameters as untrusted, review command-execution paths, apply least privilege, and restrict access to management interfaces.

Find out what's already
exploitable in your codebase.