Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-36841

CVE-2026-36841: TOTOLINK N200RE V5 RCE Vulnerability

CVE-2026-36841 is a command injection flaw in TOTOLINK N200RE V5 router that enables remote code execution via the formMapDelDevice function. This article covers technical details, affected versions, and mitigation.

Updated:

CVE-2026-36841 Overview

CVE-2026-36841 is a command injection vulnerability in the TOTOLINK N200RE V5 wireless router. The flaw resides in the formMapDelDevice function exposed through the cstecgi.cgi binary. Attackers can inject operating system commands through the macstr and bandstr parameters. Successful exploitation grants arbitrary command execution on the underlying Linux firmware with root privileges. The vulnerability is reachable over the network without authentication or user interaction, making affected routers viable targets for botnet recruitment and lateral movement into home and small-office networks. The issue is tracked under CWE-77: Improper Neutralization of Special Elements used in a Command.

Critical Impact

Unauthenticated remote attackers can execute arbitrary OS commands as root on TOTOLINK N200RE V5 devices, leading to full device takeover.

Affected Products

  • TOTOLINK N200RE V5 wireless router
  • Firmware exposing the cstecgi.cgi web interface with the formMapDelDevice handler
  • Deployments with the device management interface reachable from untrusted networks

Discovery Timeline

  • 2026-04-29 - CVE CVE-2026-36841 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-36841

Vulnerability Analysis

The vulnerability exists in the formMapDelDevice function within the cstecgi.cgi binary on TOTOLINK N200RE V5 firmware. The handler accepts the macstr and bandstr HTTP parameters and incorporates their values directly into a shell command string. Because the firmware does not sanitize or validate these inputs, an attacker can embed shell metacharacters such as semicolons, backticks, or pipe operators to chain arbitrary commands. The resulting commands execute under the privileges of the web server process, which runs as root on this device class. An unauthenticated network attacker can therefore obtain a root shell, dump configuration data including Wi-Fi credentials, modify DNS settings, or deploy persistent malware such as Mirai-class implants.

Root Cause

The root cause is improper neutralization of special elements passed to an OS command, classified as CWE-77. The formMapDelDevice handler passes user-controlled parameter values into a system() or equivalent shell invocation without escaping, allow-listing, or argument-separated execution.

Attack Vector

The attack vector is the network-accessible HTTP interface exposed by cstecgi.cgi. An attacker sends a crafted POST request to the formMapDelDevice endpoint with malicious payloads in the macstr or bandstr fields. Shell metacharacters terminate the intended command and append attacker-controlled commands that the device executes immediately. Technical details and proof-of-concept material are available in the GitHub PoC Repository.

Detection Methods for CVE-2026-36841

Indicators of Compromise

  • Inbound HTTP POST requests targeting cstecgi.cgi with formMapDelDevice action and unusual characters such as ;, |, `, or $() in the macstr or bandstr fields
  • Unexpected outbound connections from the router to attacker infrastructure, including TFTP, wget, or curl downloads of secondary payloads
  • New or modified processes on the device that do not match the stock firmware process tree
  • Changes to router DNS resolver configuration or NAT rules without administrative action

Detection Strategies

  • Inspect web server and reverse proxy logs for POST bodies sent to formMapDelDevice containing shell metacharacters in macstr or bandstr
  • Deploy network intrusion detection signatures that flag cstecgi.cgi requests carrying command-injection patterns
  • Monitor DNS and outbound traffic from router management VLANs for anomalies indicative of botnet command-and-control

Monitoring Recommendations

  • Forward router syslog and upstream firewall logs to a centralized SIEM for correlation
  • Alert on first-seen connections from SOHO router IPs to known malware staging hosts
  • Track firmware version inventory to confirm patched status across managed and unmanaged devices

How to Mitigate CVE-2026-36841

Immediate Actions Required

  • Restrict access to the router web interface so it is reachable only from trusted internal segments, never the WAN side
  • Disable remote management features on TOTOLINK N200RE V5 devices until a fix is applied
  • Rotate Wi-Fi pre-shared keys and administrator credentials on any device suspected of exposure
  • Audit the router for unauthorized firmware modifications, scheduled tasks, or unfamiliar processes

Patch Information

No vendor advisory or fixed firmware version is referenced in the NVD entry at the time of publication. Consult the TOTOLINK support portal for firmware updates addressing CVE-2026-36841, and review the GitHub PoC Repository for technical reference.

Workarounds

  • Place the device behind an upstream firewall that blocks inbound HTTP and HTTPS requests to the router management interface
  • Segment the router management plane onto a dedicated VLAN with access control lists permitting only administrative hosts
  • Replace end-of-life or unpatched units with hardware that receives active vendor security maintenance
bash
# Configuration example: block external access to the router admin interface
# Example iptables rules applied on an upstream gateway
iptables -A FORWARD -d <router_ip> -p tcp --dport 80 -i <wan_iface> -j DROP
iptables -A FORWARD -d <router_ip> -p tcp --dport 443 -i <wan_iface> -j DROP
iptables -A FORWARD -d <router_ip> -p tcp --dport 80 -s <trusted_mgmt_subnet> -j ACCEPT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.