TOTOLINK X5000R OS Command Injection Vulnerability

Vulnerability

An OS command injection vulnerability has been identified in the TOTOLINK X5000R router running firmware version 9.1.0cu.2089_B20211224. The issue arises in the CGI binary 'cstecgi.cgi', specifically within the 'exportOvpn' handler. The vulnerability is triggered when the 'user' parameter is passed to the 'snprintf' function and subsequently executed by the 'system' command without proper input validation or sanitization. This flaw allows remote attackers to execute arbitrary commands on the device.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the affected device.

Reproduction

To reproduce this vulnerability, send a request to '/cgi-bin/cstecgi.cgi' with the 'action' parameter set to 'exportOvpn', the 'type' parameter set to 'user', and the 'user' parameter containing the injected command. The injected command will be executed on the device, demonstrating the command injection vulnerability.

Added: Dec 13, 2025, 4:46 PM
Updated: Dec 13, 2025, 4:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
9.1
remediation
0.0
relevance
1.4
threat
6.4
urgency
2.9
incentive
9.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.