Skip to content
Threat Feed
critical advisory

Totolink A8000RU OS Command Injection Vulnerability

A remote OS command injection vulnerability exists in the setOpenVpnClientCfg function of the Totolink A8000RU router (version 7.1cu.643_b20200521) via manipulation of the 'enabled' argument in the /cgi-bin/cstecgi.cgi CGI handler.

CVE search metadata

CVE search record: CVE-2026-7242. Severity: critical. CVSS: 9.8. EPSS: 2.45%. KEV: no. Product: A8000RU. Brief: Totolink A8000RU OS Command Injection Vulnerability. Brief link: https://feed.craftedsignal.io/briefs/2026-04-28-totolink-rce/

Triage facts

Revision 2
Applicability
A8000RU
Evidence
Unknown
Severity
Critical
Sources
3 public sources
Freshness
Revision 2Apr 28, 09:16 UTC
Detection
2 rules
Vulnerabilities
1 CVE
Revision history 1 entry · Revision 2
  1. Revision 2

    Repaired a legacy canonical identity collision

    Changed: slug

A critical vulnerability, CVE-2026-7242, has been identified in Totolink A8000RU routers, specifically version 7.1cu.643_b20200521. The vulnerability resides within the CGI handler component, in the /cgi-bin/cstecgi.cgi file, affecting the setOpenVpnClientCfg function. A remote attacker can exploit this flaw by manipulating the enabled argument, leading to arbitrary OS command injection. Public exploit code is available, increasing the risk of widespread exploitation. This vulnerability poses a significant threat, allowing attackers to potentially gain full control of affected devices, compromise network security, and exfiltrate sensitive data.

Attack Chain

  1. Attacker identifies a vulnerable Totolink A8000RU router running firmware version 7.1cu.643_b20200521.
  2. The attacker sends a crafted HTTP POST request to /cgi-bin/cstecgi.cgi.
  3. The HTTP request targets the setOpenVpnClientCfg function.
  4. The request includes a malicious payload within the enabled argument, designed to inject OS commands.
  5. The CGI handler processes the request and executes the injected OS command due to insufficient input validation.
  6. The injected command executes with the privileges of the web server.
  7. The attacker can now execute commands on the router, potentially downloading malware or establishing a reverse shell.
  8. The attacker gains full control of the device, allowing them to modify settings, intercept network traffic, or use the device as a pivot point for further attacks.

Impact

Successful exploitation of this vulnerability allows a remote attacker to execute arbitrary operating system commands on the affected Totolink A8000RU device. This can lead to full device compromise, allowing attackers to modify router settings, intercept network traffic, or use the compromised device as a point of entry for further attacks on the network. Given the availability of public exploits, a large number of devices are potentially at risk.

Recommendation

  • Apply available patches or firmware updates from Totolink to address CVE-2026-7242.
  • Implement network segmentation to limit the impact of a compromised device.
  • Deploy the Sigma rule Detect Totolink RCE via cstecgi.cgi to identify exploitation attempts in web server logs.
  • Monitor network traffic for suspicious outbound connections originating from Totolink devices, indicative of command execution (see IOCs).

Detection coverage 2

Detect Totolink RCE via cstecgi.cgi

critical

Detects potential remote command execution attempts targeting the Totolink A8000RU cstecgi.cgi interface by looking for suspicious POST requests.

sigma tactics: execution techniques: T1210 sources: webserver, linux

Detect suspicious characters in Totolink cstecgi.cgi requests

high

Detects suspicious characters in requests to Totolink cstecgi.cgi, potentially indicating command injection attempts.

sigma tactics: execution techniques: T1059.004 sources: webserver, linux

Detection queries are available on the platform. Get full rules →