CVE-2025-34037
NoneCVSS
—
EPSS
92.8%
Published
Jun 24, 2025
CISA due date
—
Cloudanix analysis
Some Linksys routers can be taken over remotely through their web management service, letting attackers hijack the device and disrupt or spy on network traffic.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Firmware
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
This vulnerability is an unauthenticated OS command injection flaw in Linksys router CGI endpoints exposed over HTTP on port 8080. The /tmUnblock.cgi and /hndUnblock.cgi handlers pass attacker-controlled input from the ttcp_ip parameter into shell execution without proper sanitization, allowing a remote attacker to run arbitrary operating-system commands as the web server or device management process. On embedded router platforms, successful exploitation can enable download and execution of MIPS ELF malware, modification of startup scripts or firewall rules, credential extraction, traffic interception, botnet enrollment, denial of service, and full compromise of the network device.
Why it matters to the business
Compromised routers can become attacker-controlled footholds at the network edge, allowing disruption of internet connectivity, interception or redirection of traffic, participation in botnets, abuse for attacks against others, and potential pivoting into internal networks. The EPSS score is very high, exploitation is weaponized, and historical in-the-wild exploitation by TheMoon worm plus Shadowserver observations in 2025 make exposed devices an urgent operational risk even though this issue is not currently listed in CISA KEV. Impact may be broader than the originally identified E-Series devices because similar Linksys WAG, WAP, WES, WET, WRT, Wireless-N access point, and router models may share the vulnerable CGI behavior.
How an attack unfolds
An attacker scans the internet or local networks for Linksys router management interfaces listening on HTTP port 8080. After identifying a potentially vulnerable device, the attacker sends a crafted HTTP request to /tmUnblock.cgi or /hndUnblock.cgi with shell metacharacters embedded in the ttcp_ip parameter. Because the CGI handler fails to sanitize the parameter before invoking system commands, the injected command is executed by the router. Weaponized exploitation commonly uses simple shell commands such as wget, curl, tftp, or busybox utilities to retrieve a MIPS ELF payload, change permissions, execute it, and enroll the router into a worm or botnet. TheMoon worm historically used this class of flaw to self-propagate, deploy malware, and maintain control of vulnerable Linksys devices. Once running, malware may contact command-and-control infrastructure, scan for additional routers, alter firewall or DNS settings, and consume device resources, often with limited logging on the appliance itself.
How to fix it
Upgrade affected Linksys firmware to a vendor-supported version that removes or safely handles the vulnerable CGI endpoints. No exact fixed versions were provided, so operators should check Linksys advisories and firmware release notes for each model and hardware revision, especially E-Series, WAG, WAP, WES, WET, WRT, Wireless-N routers, and access points. If a device is end-of-life or no patched firmware is available, replace it with a supported model. Immediately disable remote administration from the internet, restrict management interfaces to trusted administrative networks only, and block inbound access to TCP port 8080 from untrusted networks. Where possible, disable UPnP, remove port-forwarding rules exposing management services, enforce strong administrative credentials, and reset potentially compromised devices to factory defaults before reconfiguration. Because exploitation can modify runtime state, firmware, or configuration, remediation of suspected compromised devices should include disconnecting the device, capturing forensic artifacts if feasible, factory resetting or reflashing known-good firmware, rotating any credentials stored or traversing the device, and reviewing DNS, firewall, NAT, and remote-management settings.
How to confirm the fix worked
Confirm that router management interfaces are not reachable from the internet or other untrusted networks on TCP port 8080. Use external scanning from a nontrusted network to verify that /tmUnblock.cgi and /hndUnblock.cgi are not accessible. Inventory all Linksys routers and access points by model, hardware revision, and firmware version, then compare them against current vendor support and firmware guidance. For patched or replaced devices, validate that unauthenticated requests to the affected CGI paths return 404, 403, authentication challenges, or are blocked at the network boundary. Review device configuration to ensure remote administration, UPnP-created management exposure, and unintended port forwards are disabled. For devices suspected of compromise, verify that there are no unknown DNS servers, unexpected firewall/NAT rules, unauthorized admin accounts, unknown startup entries, suspicious running processes, or outbound connections to unfamiliar hosts.
Typical attack path
- Scan for router web management services exposed on TCP port 8080.
- Fingerprint the device as a Linksys router or compatible embedded web interface.
- Send an unauthenticated HTTP request to /tmUnblock.cgi or /hndUnblock.cgi containing command injection syntax in the ttcp_ip parameter.
- Execute a command that downloads a MIPS ELF payload using wget, curl, tftp, ftpget, or busybox.
- Mark the payload executable and run it on the router.
- Establish outbound command-and-control communication or worm propagation behavior.
- Modify device configuration, DNS, firewall rules, startup scripts, or running processes to support persistence or further abuse.
How to detect it
Investigate web, reverse-proxy, firewall, IDS/IPS, NetFlow, and router logs for HTTP requests to /tmUnblock.cgi or /hndUnblock.cgi on TCP port 8080, especially where the query string or POST body contains ttcp_ip with shell metacharacters such as semicolon, pipe, backticks, $(), &&, or encoded equivalents. Look for downloader and execution commands in the same request, including wget, curl, tftp, ftpget, busybox, chmod, sh, ash, and MIPS ELF payload names. Network telemetry should be reviewed for routers initiating unexpected outbound HTTP, TFTP, or command-and-control connections shortly after receiving management-interface traffic. IDS alerts for embedded Linux malware, TheMoon worm activity, Mirai-like scanning, or MIPS ELF downloads should be correlated with exposed Linksys devices. On the router, if shell access or diagnostic export is available, inspect running processes, startup scripts, crontabs, temporary directories, DNS settings, firewall/NAT rules, and remote-management settings for unauthorized changes. Because many consumer routers have limited logging and malware may reside in memory, absence of device logs should not be considered proof of no compromise; exposed vulnerable devices should be assessed through network evidence and configuration integrity checks.
- /tmUnblock.cgi
- /hndUnblock.cgi
- ttcp_ip=
- GET /tmUnblock.cgi
- POST /tmUnblock.cgi
- GET /hndUnblock.cgi
- POST /hndUnblock.cgi
- /tmUnblock.cgi?ttcp_ip=
- /hndUnblock.cgi?ttcp_ip=
- ttcp_ip=;
- ttcp_ip=%3B
- ttcp_ip=|
- ttcp_ip=%7C
- ttcp_ip=`
- ttcp_ip=%60
- ttcp_ip=$(
- ttcp_ip=%24%28
- ttcp_ip=&&
- ttcp_ip=%26%26
- ttcp_ip=||
- ttcp_ip=%7C%7C
- ttcp_ip=
- wget http://
- curl http://
- tftp -g
- ftpget
- busybox wget
- chmod +x
- /tmp/
- /var/tmp/
- MIPS ELF
- TheMoon
- TCP/8080
What your security team should do
- Immediately identify any Linksys router or access point with a management interface exposed on TCP port 8080, prioritizing internet-facing devices.
- Block inbound access to TCP port 8080 and the affected CGI paths from untrusted networks at firewalls, edge gateways, and ISP-managed controls where available.
- Patch supported devices to the latest available firmware; replace unsupported or end-of-life devices that cannot be confirmed fixed.
- Treat exposed and unpatched devices as potentially compromised because exploitation is weaponized and has been observed in the wild.
- Factory reset or reflash suspected compromised routers, then reconfigure from a trusted baseline rather than restoring unverified backups.
- Hunt proxy, firewall, IDS, and web logs for requests to /tmUnblock.cgi or /hndUnblock.cgi containing ttcp_ip and shell metacharacters or downloader commands.
- Monitor for outbound connections from routers to unfamiliar external IPs, especially immediately after HTTP requests to the vulnerable endpoints.
- Review DNS, NAT, firewall, remote-management, and UPnP settings on affected devices for unauthorized changes.
- Rotate credentials that may have been stored on, administered through, or transmitted across compromised routers.
- Add SIEM and network detection rules for TheMoon-like exploitation patterns, MIPS ELF payload downloads, and embedded-device command execution strings.
The record
An OS command injection vulnerability exists in various models of E-Series Linksys routers via the /tmUnblock.cgi and /hndUnblock.cgi endpoints over HTTP on port 8080. The CGI scripts improperly process user-supplied input passed to the ttcp_ip parameter without sanitization, allowing unauthenticated attackers to inject shell commands. This vulnerability was reported to be exploited in the wild by the "TheMoon" worm in 2014 to deploy a MIPS ELF payload, enabling arbitrary code execution on the router. Additionally, this vulnerability may affect other Linksys products to include, but not limited to, WAG/WAP/WES/WET/WRT-series router models and Wireless-N access points and routers. Exploitation evidence was observed by the Shadowserver Foundation on 2025-02-06 UTC.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-96376 Improper Neutralization of Special Elements used in an OS Command ("OS Command… CWE-78
- CVE-2026-113732 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113776 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113726 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113725 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-113722 virtualenv is a tool for creating isolated virtual python environments. CWE-78
- CVE-2026-112943 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-78
- CVE-2026-112900 Pillow is a Python imaging library. CWE-78