/

CVE-2026-93742

Severity:

CRITICAL RISK

(9.9)

OS Command Injection (CWE-77) in Totolink formWsc

CVE-2026-93742

Deferred

Vulnerability type

Category:

OS Command Injection

CWE:

CWE-74, CWE-77

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 vulnerability in the Totolink A3002MU router's formWsc function allows commands supplied through the localPin argument to reach an operating-system command execution path. Because the affected interface may be reachable remotely, an attacker who can access it and provide crafted input could execute commands with the router service's privileges.

Affected context

The weakness occurs in the Totolink A3002MU firmware component responsible for processing WSC requests at /boafrm/formWsc. It becomes risky where the endpoint is remotely reachable and the localPin value is incorporated into an operating-system command without sufficiently separating data from command syntax.

Exploit preconditions

  • Attack surface: Network-accessible router administration or WSC request endpoint
  • Required access: Ability to send requests to the affected endpoint; authentication requirements depend on the device's deployment and access controls
  • Trigger point: Processing of the localPin argument by the formWsc function
  • Why exploitation is possible: Attacker-controlled input can reach a command execution context without adequate neutralization or parameter separation

Why this happens

The underlying bug is an OS command injection flaw. Application input is passed into a system command construction or execution path as though it were trusted data, allowing command syntax to alter the intended operation. This maps primarily to CWE-77: Improper Neutralization of Special Elements used in a Command, with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection pattern.

Potential impact

  • An attacker may execute arbitrary commands with the privileges of the affected router service.
  • The device could be compromised or its configuration could be altered.
  • Network traffic may be monitored, redirected, or disrupted.
  • Connected systems could be exposed to follow-on attacks.
  • The router may be incorporated into botnets or used to attack other systems.

General mitigation guidance

Mitigation generally focuses on ensuring that external input cannot become executable command syntax.

Common defensive patterns include:

  • Avoiding shell invocation when a direct library or API operation is available.
  • Passing arguments through structured APIs that do not interpret shell metacharacters.
  • Applying allowlist validation for values such as PINs, including strict type, length, and format checks.
  • Keeping administrative and device-management interfaces off untrusted networks.
  • Running service processes with the least privileges needed for their function.
  • Separating command construction from user-controlled data and applying centralized input-trust policies.

How teams detect issues like this

Organizations can look for command injection risks through:

  • Static analysis rules identifying shell execution APIs that receive request parameters.
  • Code review checks for string concatenation or formatting used to build system commands.
  • Tests that verify strict validation and structured argument passing for management inputs.
  • Runtime monitoring for unexpected child processes, shell launches, or unusual outbound connections from router services.
  • Network policy enforcement that limits access to administrative endpoints and management interfaces.
  • Automated security review tools that flag untrusted data flows into command execution sinks.

Sources

SourceLink
github.comgithub.com/SunnyYANGyaya/cuicuishark-sheep-fishIOT/blob/main/ToTolink/A3002MU/rce-formWsc.md
vuldb.comvuldb.com/cve/CVE-2026-93742
vuldb.comvuldb.com/submit/914021
vuldb.comvuldb.com/vuln/407552
vuldb.comvuldb.com/vuln/407552/cti
totolink.nettotolink.net/

Frequently asked

questions

Yes, the issue is described as remotely initiable. Practical exploitability depends on network reachability, endpoint exposure, and any authentication or authorization controls protecting the affected function.

An attacker needs the ability to submit input to the vulnerable formWsc endpoint. Whether unauthenticated access is possible depends on the router's configuration and deployment context.

The safest pattern is to eliminate shell-based execution where possible. If an operating-system operation is unavoidable, use a structured API, pass arguments separately, and enforce strict allowlist validation on the input.

Treat all request parameters as untrusted, review data flows into process-launching APIs, restrict management interfaces to trusted networks, and apply least privilege to device services.

Find out what's already
exploitable in your codebase.