CVE-2026-7138
Remote OS Command Injection in Totolink A8000RU CGI Handler
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
Can you explain this vulnerability to me?
CVE-2026-7138 is a command injection vulnerability in the TOTOLINK A8000RU router, specifically in version 7.1cu.643_b20200521. The flaw exists in the CGI script cstecgi.cgi within the function setNtpCfg, where the user-supplied parameter "tz" is improperly handled.
The vulnerability occurs because the value of the "tz" parameter is passed to a function that formats it into a buffer and then executes it as an operating system command. This allows an attacker to remotely execute arbitrary OS commands on the router without any authentication.
A proof of concept shows that by sending a specially crafted POST request with the "tz" parameter set to a command like `ls>./setNtpCfg.txt`, the router executes this command and creates a file containing the directory listing, confirming the command injection.
How can this vulnerability impact me? :
This vulnerability allows an attacker to remotely execute arbitrary operating system commands on the affected TOTOLINK A8000RU router without any authentication.
- An attacker could take full control of the router, potentially altering its configuration or disrupting network services.
- The attacker could use the router as a foothold to launch further attacks within the internal network.
- Sensitive information could be exposed or modified, and the router could be used to intercept or manipulate network traffic.
- Because the exploit is publicly available, the risk of exploitation is high.
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 the tz parameter manipulated to execute a command. For example, setting tz to `ls>./setNtpCfg.txt` will cause the router to execute the command and create a file named setNtpCfg.txt containing the directory listing.
A detection command example using curl would be:
- curl -X POST -d "tz=ls>./setNtpCfg.txt" http://[router_ip]/cgi-bin/cstecgi.cgi
After running this command, checking the router's filesystem for the presence of the setNtpCfg.txt file confirms the vulnerability.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The CVE-2026-7138 vulnerability allows remote attackers to execute arbitrary OS commands on the TOTOLINK A8000RU router via command injection in the setNtpCfg function. This can lead to unauthorized access, data manipulation, or disruption of services.
Such unauthorized access and control over the device could result in violations of data protection and security requirements mandated by standards like GDPR and HIPAA, which require safeguarding personal and sensitive information against unauthorized access and ensuring system integrity.
Therefore, exploitation of this vulnerability could compromise compliance with these regulations by exposing sensitive data or disrupting secure operations.
What immediate steps should I take to mitigate this vulnerability?
To mitigate the CVE-2026-7138 vulnerability in the Totolink A8000RU router, immediate steps should focus on preventing exploitation of the command injection flaw in the setNtpCfg function.
- Restrict remote access to the /cgi-bin/cstecgi.cgi endpoint to trusted networks or disable it if not needed.
- Apply any available firmware updates or patches from the vendor that address this vulnerability.
- Monitor network traffic for suspicious POST requests targeting the tz parameter in /cgi-bin/cstecgi.cgi.
- Consider implementing network-level protections such as firewall rules or intrusion detection/prevention systems to block exploitation attempts.