Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability has been found in Totolink N300RH 6.1c.1353_B20190305. Affected is the function setPasswordCfg of the file /cgi-bin/cstecgi.cgi of the component Web Management Interface. Such manipulation of the argument admpass leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used.
AnalysisAI
OS command injection in the Totolink N300RH router (firmware 6.1c.1353_B20190305) allows remote unauthenticated attackers to execute arbitrary operating system commands by manipulating the admpass argument sent to the setPasswordCfg function in /cgi-bin/cstecgi.cgi. Publicly available exploit code exists, and the SSVC framework rates technical impact as total with automatable exploitation, though EPSS remains low at 0.20%. The flaw is reachable over the network without authentication or user interaction, giving an attacker full control of the device.
Technical ContextAI
The affected component is the web management interface CGI binary cstecgi.cgi on Totolink N300RH wireless routers (cpe:2.3:a:totolink:n300rh:*:*:*:*:*:*:*:*), specifically the setPasswordCfg handler which processes the admpass parameter. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command), meaning user-supplied input is concatenated into a shell command without proper sanitization or use of safe execution APIs. This pattern is endemic to SOHO router firmware where CGI scripts invoke system() or popen() with attacker-influenced strings, allowing shell metacharacters to break out of the intended command context and execute as the (typically root) web server user.
RemediationAI
No vendor-released patch identified at time of analysis - Totolink has not published a fixed firmware version in the provided references. As compensating controls, disable remote (WAN-side) management of the router immediately so that /cgi-bin/cstecgi.cgi is not reachable from the internet, which eliminates the unauthenticated remote attack surface at the cost of requiring on-LAN access for administration. Restrict LAN-side access to the management interface to a dedicated admin VLAN or specific MAC/IP addresses to limit insider and compromised-client exploitation, accepting the operational overhead of managing the allowlist. Monitor https://www.totolink.net/ and the VulDB record at https://vuldb.com/vuln/365607 for an official firmware update, and consider replacing the device with a vendor-supported model if the N300RH has reached end-of-life, since SOHO router firmware lifecycles are short and this CGI binary likely contains additional unpatched bugs.
Stack-based buffer overflow in the Totolink N300RH router (firmware 6.1c.1353_B20190305) allows remote attackers to corr
Remote unauthenticated attackers can execute arbitrary code on Totolink N300RH routers version 3.2.4-B20220812 by sendin
Remote authenticated attackers can execute arbitrary code on Totolink N300RH 3.2.4-B20220812 routers via buffer overflow
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 allows authenticated remote attackers to achieve comp
Buffer overflow in Totolink N300RH router firmware 3.2.4-B20220812 enables authenticated remote attackers to achieve cod
Remote code execution in Totolink N300RH firmware 6.1c.1353_B20190305 allows unauthenticated network attackers to execut
External file inclusion in Totolink N300RH firmware 6.1c.1353_B20190305 allows remote unauthenticated attackers to manip
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-31816
GHSA-85g8-3qwj-fmpv