Skip to main content

Totolink N300RH EUVDEUVD-2026-31816

| CVE-2026-9543 HIGH
OS Command Injection (CWE-78)
2026-05-26 VulDB GHSA-85g8-3qwj-fmpv
8.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed N300RH management interface
  2. Delivery
    Craft POST to /cgi-bin/cstecgi.cgi setPasswordCfg
  3. Exploit
    Inject shell metacharacters in admpass parameter
  4. Execution
    CGI executes injected OS command as root
  5. Persist
    Deploy persistent backdoor or implant
  6. Impact
    Pivot 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 ; or backticks. The injected command executes as the web server process (typically root on embedded Linux), allowing the attacker to drop a backdoor, pivot into the internal network, or enlist the device into a botnet. A public POC is available at https://github.com/A1ester/TOTOLINK-N300RH-Command-Injection, lowering the skill barrier substantially.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

N300RH 6.1c.1353_B20190305

Affected Packages

euvd n300rh no fix

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

Vendor (VulDB) PRIMARY 8.9 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 26, 2026 - 14:22 NVD
CRITICAL HIGH
CVSS changed
May 26, 2026 - 14:22 NVD
9.8 (CRITICAL) 8.9 (HIGH)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 58% exploitable
Exploit
POC
Public exploit code exists
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy