Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed N300RH management interface
-
DeliveryCraft POST to /cgi-bin/cstecgi.cgi setPasswordCfg
-
ExploitInject shell metacharacters in admpass parameter
-
ExecutionCGI executes injected OS command as root
-
PersistDeploy persistent backdoor or implant
-
ImpactPivot to LAN or join botnet
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must have network reachability to the router's Web Management Interface (TCP port serving /cgi-bin/cstecgi.cgi) and the target must be running firmware 6.1c.1353_B20190305 on a Totolink N300RH. Per CVSS PR:N and UI:N, no authentication and no user interaction are required - exploitation is unauthenticated against the setPasswordCfg endpoint. The principal limiting factor is exposure: by default most SOHO routers restrict the management interface to the LAN, so internet-wide exploitation requires that the operator has explicitly enabled WAN-side remote administration; otherwise exploitation requires a foothold on the LAN (a compromised host, malicious Wi-Fi client, or insider). No special configuration of the vulnerable feature itself is needed - the password-change CGI handler is present in the default firmware. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H/VA:H yields a score of 8.9, reflecting that exploitation requires only network reachability to the management interface with no privileges or user interaction, and yields total compromise of confidentiality, integrity, and availability. SSVC corroborates this with Exploitation=poc, Automatable=yes, and Technical Impact=total, indicating a worm-friendly primitive. However, the EPSS probability of 0.20% (42nd percentile) and absence from CISA KEV suggest that while the bug is trivially exploitable and a POC is published on GitHub, broad opportunistic exploitation has not yet been observed - consistent with the limited internet exposure typical of consumer routers whose admin interfaces are usually LAN-only. Real-world risk is high for devices with WAN-side management enabled and for internal attackers on the LAN; lower for default WAN-blocked deployments. No conflicting signals were identified in the available data. |
| Exploit ScenarioDerived | An attacker reachable to the router's web management interface - either across the internet if remote management is enabled, or from any host on the LAN - sends a single crafted HTTP POST request to /cgi-bin/cstecgi.cgi invoking setPasswordCfg with an admpass value containing shell metacharacters such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when N300Rh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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.
Executive ViewAI
Totolink N300RH routers (firmware 6.1c.1353_B20190305) are susceptible to unauthenticated remote command injection, granting attackers unchecked administrative access to the network gateway. The vulnerability enables adversaries to execute arbitrary system commands without authentication, potentially enabling network eavesdropping, traffic interception, lateral movement, or device reconfiguration. With functional exploit code publicly available, the risk of opportunistic exploitation is immediate.
No vendor-released patch identified at time of analysis. Interim mitigations: Implement strict network access controls (ACLs) limiting HTTP/HTTPS access to the router's administrative interface; segment affected routers to isolated VLANs with no inter-VLAN routing; disable remote management features and restrict WAN-side administrative access; monitor for suspicious login attempts, unauthorized configuration changes, or anomalous command execution in device logs; establish baseline of router configuration and hash firmware images for tampering detection.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
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
EUVD-2026-31816
GHSA-85g8-3qwj-fmpv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB