/

CVE-2026-120197

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-78) in WAVLINK WL-WN530HG4B

CVE-2026-120197

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Code 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 flaw in the WAVLINK WL-WN530HG4B affects the port_forward function in /cgi-bin/wapi.cgi. A remote attacker who can reach and trigger the affected functionality may cause operating-system commands to run on the device by manipulating the Name argument; exploit code has been published.

A command-injection flaw in the WAVLINK WL-WN530HG4B affects the port_forward function in /cgi-bin/wapi.cgi. A remote attacker who can reach and trigger the affected functionality may cause operating-system commands to run on the device by manipulating the Name argument; exploit code has been published.

Affected context

The issue is reported in WAVLINK WL-WN530HG4B firmware M_V260724, in the port_forward function handled by /cgi-bin/wapi.cgi. It becomes a risk when the endpoint is reachable by an attacker and the Name argument is incorporated into a command without safe handling. The available information does not establish whether authentication is required.

The issue is reported in WAVLINK WL-WN530HG4B firmware M_V260724, in the port_forward function handled by /cgi-bin/wapi.cgi. It becomes a risk when the endpoint is reachable by an attacker and the Name argument is incorporated into a command without safe handling. The available information does not establish whether authentication is required.

Exploit preconditions

  • Attack surface: The router's /cgi-bin/wapi.cgi interface
  • Required access: Network access to the affected functionality; authentication requirements are not specified
  • Trigger point: Processing of the Name argument by the port_forward function
  • Why exploitation is possible: The argument can influence an operating-system command without adequate separation between data and command syntax
  • Exploit availability: Public exploit code has been reported
  • Attack surface: The router's /cgi-bin/wapi.cgi interface
  • Required access: Network access to the affected functionality; authentication requirements are not specified
  • Trigger point: Processing of the Name argument by the port_forward function
  • Why exploitation is possible: The argument can influence an operating-system command without adequate separation between data and command syntax
  • Exploit availability: Public exploit code has been reported

Why this happens

The reported flaw is command injection through an input value used by a system-command operation. If the application builds or invokes commands using attacker-influenced data without safe argument handling, the input may be interpreted as command syntax rather than ordinary data. This aligns with CWE-78: Improper Neutralization of Special Elements used in an OS Command; CWE-77 describes the broader command-injection class.

The reported flaw is command injection through an input value used by a system-command operation. If the application builds or invokes commands using attacker-influenced data without safe argument handling, the input may be interpreted as command syntax rather than ordinary data. This aligns with 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 operating-system commands on the router
  • The device could be compromised or its configuration altered
  • Network traffic handled by the device could be disrupted or exposed
  • A compromised router could be used to reach other systems, depending on network placement and privileges
  • An attacker may execute operating-system commands on the router
  • The device could be compromised or its configuration altered
  • Network traffic handled by the device could be disrupted or exposed
  • A compromised router could be used to reach other systems, depending on network placement and privileges

General mitigation guidance

Defensive approaches generally focus on preventing untrusted input from becoming command syntax and reducing the consequences of a compromise.

  • Prefer APIs that invoke fixed operations with explicit argument boundaries rather than constructing shell commands.
  • Validate input against a narrow allowlist and treat configuration values as untrusted.
  • Apply least privilege to processes that handle web requests and device configuration.
  • Limit network exposure to administrative interfaces and use access controls appropriate to the deployment.
  • Where feasible, use isolation and monitoring to constrain and detect unexpected command execution.

Defensive approaches generally focus on preventing untrusted input from becoming command syntax and reducing the consequences of a compromise.

  • Prefer APIs that invoke fixed operations with explicit argument boundaries rather than constructing shell commands.
  • Validate input against a narrow allowlist and treat configuration values as untrusted.
  • Apply least privilege to processes that handle web requests and device configuration.
  • Limit network exposure to administrative interfaces and use access controls appropriate to the deployment.
  • Where feasible, use isolation and monitoring to constrain and detect unexpected command execution.

How teams detect issues like this

  • Use static analysis to identify shell or process-invocation APIs that receive request-derived values.
  • Review command construction in CGI handlers, especially paths that process configuration fields such as Name.
  • Monitor device and network logs for unusual requests to the affected interface and unexpected process activity.
  • Enforce policies that prohibit shell-based command construction with untrusted input and require validation at trust boundaries.
  • Automated code-review tools may help flag risky command invocation patterns.
  • Use static analysis to identify shell or process-invocation APIs that receive request-derived values.
  • Review command construction in CGI handlers, especially paths that process configuration fields such as Name.
  • Monitor device and network logs for unusual requests to the affected interface and unexpected process activity.
  • Enforce policies that prohibit shell-based command construction with untrusted input and require validation at trust boundaries.
  • Automated code-review tools may help flag risky command invocation patterns.

Sources

SourceLink
github.comgithub.com/pipiyyb/cve/blob/main/WL-WN530HG4B.md
vuldb.comvuldb.com/cve/CVE-2026-120197
vuldb.comvuldb.com/submit/917074
vuldb.comvuldb.com/vuln/429560
vuldb.comvuldb.com/vuln/429560/cti

Frequently asked

questions

The report describes a remote attack against the affected interface. Successful exploitation depends on the endpoint being reachable and any access controls in place.

The provided information does not specify authentication requirements. Network access to the affected functionality is a stated condition; deployment controls may affect practical exposure.

Avoid passing untrusted values through a shell. Use fixed operations and argument-safe process APIs, and validate inputs against the expected format.

Treat request parameters as untrusted, review command invocation paths, enforce least privilege, and use automated checks and policy controls to catch unsafe command construction.

The report describes a remote attack against the affected interface. Successful exploitation depends on the endpoint being reachable and any access controls in place.

The provided information does not specify authentication requirements. Network access to the affected functionality is a stated condition; deployment controls may affect practical exposure.

Avoid passing untrusted values through a shell. Use fixed operations and argument-safe process APIs, and validate inputs against the expected format.

Treat request parameters as untrusted, review command invocation paths, enforce least privilege, and use automated checks and policy controls to catch unsafe command construction.

Find out what's already
exploitable in your codebase.