CVE-2026-6138
Received Received - Intake
OS Command Injection in Totolink A7100RU CGI Handler Allows Remote Exploit

Publication date: 2026-04-13

Last updated on: 2026-04-13

Assigner: VulDB

Description
A flaw has been found in Totolink A7100RU 7.4cu.2313_b20191024. The impacted element is the function setAccessDeviceCfg of the file /cgi-bin/cstecgi.cgi of the component CGI Handler. This manipulation of the argument mac causes os command injection. The attack can be initiated remotely. The exploit has been published and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-13
Last Modified
2026-04-13
Generated
2026-05-07
AI Q&A
2026-04-13
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
totolink a7100ru 7.4cu.2313_b20191024
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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?

The CVE-2026-6138 vulnerability affects the TOTOLINK A7100RU router, version 7.4cu.2313_b20191024, and is a command injection flaw located in the cstecgi.cgi CGI script.

Specifically, the vulnerability arises in the function that processes a user-supplied parameter named "mac." This parameter's value is concatenated and passed through several functions until it is executed as an operating system command.

An attacker can send a crafted HTTP POST request containing a malicious "mac" value to the /cgi-bin/cstecgi.cgi endpoint, causing the router to execute arbitrary OS commands remotely.


How can this vulnerability impact me? :

This vulnerability allows remote attackers to execute arbitrary operating system commands on the affected TOTOLINK A7100RU router without any authentication.

Exploitation can lead to full compromise of the device, enabling attackers to control the router, intercept or manipulate network traffic, deploy malware, or use the device as a pivot point for further attacks within the network.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by monitoring for suspicious HTTP POST requests sent to the /cgi-bin/cstecgi.cgi endpoint containing a JSON payload with a "mac" parameter that includes command injection patterns.

A practical detection method is to capture and analyze network traffic for POST requests targeting /cgi-bin/cstecgi.cgi with unusual or suspicious "mac" parameter values that attempt to execute commands such as wget or other shell commands.

For example, using a tool like curl or wget to test the endpoint with a benign payload can help verify if the endpoint is vulnerable.

  • Use tcpdump or Wireshark to capture HTTP POST requests to /cgi-bin/cstecgi.cgi and inspect the payload for suspicious "mac" parameter values.
  • Example command to monitor network traffic: tcpdump -i <interface> -A 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
  • Use curl to send a test POST request: curl -X POST http://<router-ip>/cgi-bin/cstecgi.cgi -d '{"mac":"test"}' -H 'Content-Type: application/json'
  • Check router logs or system logs for evidence of executed commands or unusual activity triggered by the "mac" parameter.

What immediate steps should I take to mitigate this vulnerability?

Immediate mitigation steps include restricting access to the vulnerable /cgi-bin/cstecgi.cgi endpoint to trusted networks or IP addresses only.

If possible, disable or block HTTP POST requests to the /cgi-bin/cstecgi.cgi script until a patch or update is applied.

Monitor network traffic for suspicious requests targeting this endpoint and block any malicious IP addresses.

Apply any available firmware updates or patches from the vendor that address this vulnerability.

Consider isolating the affected device from the internet or untrusted networks to prevent remote exploitation.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The vulnerability allows remote attackers to execute arbitrary operating system commands on the affected TOTOLINK A7100RU router by exploiting a command injection flaw. This can lead to unauthorized access, data breaches, and potential manipulation or exfiltration of sensitive information.

Such unauthorized access and potential data compromise can negatively impact compliance with common standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and breaches.

Therefore, if exploited, this vulnerability could result in violations of these regulations due to failure to adequately secure the device and protect data confidentiality and integrity.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart