/

CVE-2026-120195

Severity:

CRITICAL RISK

(10.0)

OS Command Injection (CWE-78) in WAVLINK Setup Wizard

CVE-2026-120195

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-77, CWE-78

Impact:

Remote Code 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 critical OS command injection vulnerability affects the Initial Setup Wizard in the WAVLINK WL-WN579A3-A. A remote attacker may be able to execute operating-system commands by manipulating the wlan_ssid argument processed by the set_wzdgwMesh function.

Affected context

The issue is reported in the Initial Setup Wizard component of WAVLINK WL-WN579A3-A firmware version 2026-03-10-94f93d4. It involves the set_wzdgwMesh function in /cgi-bin/adm.cgi, where the wlan_ssid argument is associated with command injection. Risk depends on whether the relevant endpoint is reachable and how the device handles requests and permissions.

Exploit preconditions

  • Attack surface: The Initial Setup Wizard endpoint in /cgi-bin/adm.cgi, reportedly reachable remotely
  • Required access: The description does not establish whether authentication or other access controls are required
  • Trigger point: Processing of the wlan_ssid argument by set_wzdgwMesh
  • Why exploitation is possible: The argument is reported to influence operating-system command execution without adequate protection against command injection

Why this happens

This issue maps most directly to CWE-78: Improper Neutralization of Special Elements used in an OS Command. It also relates to CWE-77: Improper Neutralization of Special Elements used in a Command. The underlying bug class occurs when externally influenced input reaches a command interpreter without being safely separated from command syntax or appropriately constrained.

Potential impact

  • An attacker may execute commands with the privileges of the affected service
  • Device settings or files could be modified
  • The device may be disrupted or made unavailable
  • A compromised device could potentially be used as a foothold for further network activity

General mitigation guidance

Defensive approaches generally focus on removing shell interpretation from request handling and limiting the trust placed in user-controlled values.

  • Prefer APIs that pass arguments directly to a process without invoking a shell
  • Apply strict allowlist validation appropriate to the expected SSID format and length
  • Avoid using user-controlled values to construct commands; where unavoidable, use well-established argument and escaping mechanisms
  • Run services with the least privileges needed and restrict their access to files and system functions
  • Limit exposure of setup endpoints to trusted networks and disable them when they are not needed

How teams detect issues like this

  • Use static analysis to identify shell execution APIs and command construction involving request parameters
  • Review code paths from HTTP or CGI arguments, especially wlan_ssid, to operating-system process invocation
  • Add security checks that flag shell-based command execution and require documented approval for exceptions
  • Monitor device and network logs for unexpected setup requests or unusual process activity, where available
  • Automated code review tools may help identify input-to-command flows for manual assessment

Sources

SourceLink
github.comgithub.com/pipiyyb/cve/blob/main/WAVLINK_WN579A3_CVE_wzdgwMesh_wlan_ssid.md
vuldb.comvuldb.com/cve/CVE-2026-120195
vuldb.comvuldb.com/submit/914922
vuldb.comvuldb.com/vuln/429558
vuldb.comvuldb.com/vuln/429558/cti

Frequently asked

questions

The report says the attack can be carried out remotely. Actual exposure may depend on endpoint reachability and device access controls.

The description does not specify whether authentication is required. Treat access to the setup endpoint as a key condition to verify.

Avoid passing request-derived values through a shell. Use direct process APIs where needed and validate inputs against a narrow, documented allowlist.

Minimize exposed setup interfaces, review data flows from request parameters to command execution, enforce least privilege, and include command-injection checks in development and security review.

Find out what's already
exploitable in your codebase.