Totolink A8000RU OS Command Injection Vulnerability
CVE-2026-7152 is a critical OS command injection vulnerability in the Totolink A8000RU router that allows remote attackers to execute arbitrary commands by manipulating the telnet_enabled argument in the setTelnetCfg function.
CVE search metadata
CVE search record: CVE-2026-7152. Severity: critical. CVSS: 9.8. EPSS: 3.25%. KEV: no. Product: A8000RU 7.1cu.643_b20200521. Brief: Totolink A8000RU OS Command Injection Vulnerability. Brief link: https://feed.craftedsignal.io/briefs/2026-04-27-totolink-rce/
Triage facts
Revision 2- Applicability
- A8000RU 7.1cu.643_b20200521
- Evidence
- Unknown
- Severity
- Critical
- Sources
- 3 public sources
- Freshness
- Revision 2Apr 27, 20:16 UTC
- Detection
- 2 rules
- Vulnerabilities
- 1 CVE
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
A critical vulnerability, CVE-2026-7152, has been discovered in the Totolink A8000RU router, specifically version 7.1cu.643_b20200521. This flaw resides within the CGI handler component, affecting the setTelnetCfg function located in /cgi-bin/cstecgi.cgi. By manipulating the telnet_enabled argument, an attacker can inject arbitrary OS commands. This vulnerability is remotely exploitable and poses a significant threat as a proof-of-concept exploit is publicly available. Successful exploitation could lead to complete system compromise, allowing attackers to gain full control of the affected router and potentially pivot to other devices on the network.
Attack Chain
- Attacker identifies a Totolink A8000RU router running firmware version 7.1cu.643_b20200521.
- Attacker sends a crafted HTTP POST request to
/cgi-bin/cstecgi.cgi. - The POST request targets the
setTelnetCfgfunction. - The request includes a malicious payload within the
telnet_enabledargument, injecting an OS command. - The
setTelnetCfgfunction fails to properly sanitize thetelnet_enabledargument. - The injected OS command is executed by the router's operating system with elevated privileges.
- Attacker gains remote shell access to the router.
- Attacker can then perform further malicious activities such as network reconnaissance, data exfiltration, or deploying persistent backdoors.
Impact
Successful exploitation of CVE-2026-7152 allows an attacker to execute arbitrary OS commands on the affected Totolink A8000RU router. This can lead to a complete compromise of the device, allowing the attacker to modify router configurations, intercept network traffic, or use the router as a pivot point to attack other devices on the network. Given the wide usage of these routers, a successful widespread exploitation could affect thousands of home and business networks.
Recommendation
- Deploy the Sigma rule
Detect Totolink RCE via CGIto detect exploitation attempts in web server logs. - Apply available patches or firmware updates from Totolink to remediate CVE-2026-7152.
- Monitor web server logs for suspicious POST requests to
/cgi-bin/cstecgi.cgias indicated in the attack chain. - Implement strict input validation and sanitization for all CGI scripts to prevent command injection vulnerabilities (reference the vulnerability description).
Detection coverage 2
Detect Totolink RCE via CGI
criticalDetects attempts to exploit the Totolink A8000RU OS command injection vulnerability (CVE-2026-7152) by monitoring POST requests to the cstecgi.cgi script.
Detect Shell Spawn from Totolink CGI
highDetects shell processes spawned from the cstecgi.cgi process, which is indicative of successful command injection.
Detection queries are available on the platform. Get full rules →