CVE-2026-7139
OS Command Injection in Totolink A8000RU CGI Handler Allows Remote Exploit
Publication date: 2026-04-27
Last updated on: 2026-04-27
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| totolink | a8000ru | 7.1cu.643_b20200521 |
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 be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by sending a crafted POST request to the /cgi-bin/cstecgi.cgi endpoint with a malicious "mode" parameter that attempts command injection.
For example, a test command can be sent with the "mode" parameter set to `ls>./setWiFiAclRules.txt`. If the router is vulnerable, it will execute this command and create a file named setWiFiAclRules.txt containing the directory listing.
This confirms successful command execution and thus the presence of the vulnerability.
A sample command using curl to test this could be:
- curl -X POST -d "mode=ls>./setWiFiAclRules.txt" http://[router_ip]/cgi-bin/cstecgi.cgi
After running the above, check if the file setWiFiAclRules.txt exists on the device or if the command output can be observed, indicating the vulnerability.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The CVE-2026-7139 vulnerability allows remote attackers to execute arbitrary operating system commands on the affected TOTOLINK A8000RU router. This can lead to unauthorized access, data manipulation, or disruption of services.
Such unauthorized access and control over network devices can compromise the confidentiality, integrity, and availability of data, which are core principles in standards like GDPR and HIPAA.
Therefore, exploitation of this vulnerability could result in non-compliance with these regulations due to potential data breaches, unauthorized data processing, or failure to protect sensitive information.
What immediate steps should I take to mitigate this vulnerability?
To mitigate the CVE-2026-7139 vulnerability in the Totolink A8000RU router, immediate steps include restricting remote access to the affected device, especially to the /cgi-bin/cstecgi.cgi endpoint.
Additionally, disabling or limiting the use of the vulnerable function setWiFiAclRules or the CGI Handler component may reduce exposure.
Applying any available firmware updates or patches from the vendor that address this command injection flaw is strongly recommended once they become available.
As a temporary measure, monitoring network traffic for suspicious POST requests targeting /cgi-bin/cstecgi.cgi with unusual 'mode' parameters can help detect exploitation attempts.
Can you explain this vulnerability to me?
CVE-2026-7139 is a command injection vulnerability found in the TOTOLINK A8000RU router, version 7.1cu.643_b20200521. It exists in the CGI Handler component, specifically in the function setWiFiAclRules within the /cgi-bin/cstecgi.cgi file.
The vulnerability arises because a user-supplied parameter named "mode" is improperly handled. This parameter is passed to a function that constructs a command string and then executes it on the operating system without proper sanitization.
As a result, an attacker can remotely send a crafted request to the router that injects and executes arbitrary OS commands. For example, the attacker can execute commands like listing directory contents or creating files on the device.
How can this vulnerability impact me? :
This vulnerability allows remote attackers to execute arbitrary operating system commands on the affected TOTOLINK A8000RU router without any authentication.
The impact includes potential full compromise of the device, allowing attackers to manipulate router settings, intercept or redirect network traffic, install malware, or use the device as a foothold for further attacks within the network.
Because the exploit is publicly available, the risk of exploitation is high, and affected devices are vulnerable to immediate attack.