CVE-2026-2167
OS Command Injection in Totolink WA300 setAPNetwork Function
Publication date: 2026-02-08
Last updated on: 2026-04-29
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| totolink | wa300_firmware | 5.2cu.7112_b20190227 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-77 | The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. |
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :
This vulnerability allows remote attackers to execute arbitrary system commands with root privileges on the affected Totolink WA300 router. This can lead to a full compromise of the device.
- Attackers can gain unauthorized root-level access.
- Confidentiality, integrity, and availability of the device can be severely impacted.
- Attackers can manipulate device settings, access sensitive data, or disrupt network operations.
- The exploit is publicly available, making it easier for attackers to target vulnerable devices.
Can you explain this vulnerability to me?
CVE-2026-2167 is a critical OS command injection vulnerability found in the Totolink WA300 router, firmware version 5.2cu.7112_B20190227. The flaw exists in the setAPNetwork function within the /cgi-bin/cstecgi.cgi file. It occurs because the Ipaddr parameter in POST requests is not properly sanitized or validated, allowing attackers to inject shell commands.
When an attacker sends a specially crafted request with malicious input in the Ipaddr parameter, the router concatenates this input directly into system commands without filtering. This enables remote attackers to execute arbitrary commands with root privileges on the device, leading to full compromise.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
[{'type': 'paragraph', 'content': 'This vulnerability can be detected by sending crafted POST requests to the endpoint /cgi-bin/cstecgi.cgi targeting the setAPNetwork function, specifically manipulating the Ipaddr parameter to check for command injection.'}, {'type': 'paragraph', 'content': 'A practical detection method is to send a POST request with the Ipaddr parameter containing a shell command, such as `ls>/1.txt`. If the file /1.txt is created on the device, it confirms the vulnerability and remote command execution capability.'}, {'type': 'paragraph', 'content': 'Example command using curl to test the vulnerability:'}, {'type': 'list_item', 'content': "curl -X POST http://[router-ip]/cgi-bin/cstecgi.cgi -d 'action=setAPNetwork&Ipaddr=`ls>/1.txt`'"}, {'type': 'paragraph', 'content': 'After running the above command, check the device filesystem for the presence of /1.txt to confirm successful command injection.'}] [2]
What immediate steps should I take to mitigate this vulnerability?
[{'type': 'paragraph', 'content': 'No official patch or fix has been provided by the vendor for this vulnerability.'}, {'type': 'paragraph', 'content': 'Immediate mitigation steps include:'}, {'type': 'list_item', 'content': "Restrict remote access to the router's web interface, especially blocking access to /cgi-bin/cstecgi.cgi."}, {'type': 'list_item', 'content': 'Disable or limit the use of the setAPNetwork function if possible.'}, {'type': 'list_item', 'content': 'Monitor network traffic for suspicious POST requests targeting the Ipaddr parameter.'}, {'type': 'list_item', 'content': 'Consider replacing the affected Totolink WA300 device with a more secure alternative.'}] [3]