CVE-2025-34037 Linksys Routers E/WAG/WAP/WES/WET/WRT-Series
Unauthenticated attackers can inject shell commands via CGI endpoints on Linksys routers, enabling arbitrary code execution and potential worm propagation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-34037?
CVE-2025-34037 is a critical command injection vulnerability in Linksys E1000 v1, published on 24 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-78
Which versions are affected by CVE-2025-34037?
How do I fix CVE-2025-34037?
No fix has been published for CVE-2025-34037 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-34037 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34037 exists.
Public exploit code: 1 Metasploit module and 1 proofs of concept on GitHub.
Sources
Also known as GHSA-4c6f-v7q4-2m38.