A flaw in the TOTOLINK X6000R Wi-Fi 6 router lets anyone who can reach its web interface take over the device as root, without logging in. The vulnerability got the identifier CVE-2026-140263, published on 1 December 2026 through VulDB. The record lists firmware 9.4.0cu.1640_B20260528. The researcher who found it published a technical report and a proof of concept on GitHub, and says TOTOLINK has not answered.
How the attack works
The router's web server, shttpd, passes requests to cstecgi.cgi. According to the report, a request with action=telnet goes straight to a handler and never reaches the session token check. Two more things make it worse. The password the handler expects is the Base64 form of a build identifier (commitid) stored in the firmware, so it's the same on every router running this version. The second parameter is just the current date in MMDDYYYY format, which anyone can work out.
Two requests in a row are enough: one with enable=2, then one with enable=1. The router then sets the root password to that shared value, starts a Telnet server and a login prompt on the serial console, and adds a line to /etc/inittab. The attacker logs in over Telnet as root. The report notes that this firmware version is the one that added the password reset. Before, the same branch only started Telnet, and the earlier TOTOLINK CVEs it lists concern firmware 652_B20230116 or older.
Who is exposed
By default the handler can be reached from the local network, because the router drops incoming connections on the WAN side. If remote management is on or port 80 is forwarded to the internet, it can be reached from outside too. That's why the scores differ: the researcher rates it 8.8 under CVSS 3.1 as an adjacent-network attack, while VulDB gives it the maximum 10.0, assuming network access.
Inside the home, "local network" covers every device connected to the router, including cheap cameras, smart plugs and guests' phones. Any of them, once compromised, could send those two requests.
What to do now
TOTOLINK was emailed on 11 November and, according to the researcher, had not replied by the time the report was published. Neither the CVE record nor the report names a fixed firmware version. Until one appears, X6000R owners should:
- turn off remote management and make sure port 80 isn't forwarded to the WAN;
- keep devices they don't trust, including IoT gadgets, on a separate guest network if the router allows it;
- watch TOTOLINK's download page for a firmware newer than 1640_B20260528.