CVE-2012-10041 WAN Emulator v2.3 Command Execution
Unauthenticated attackers can execute arbitrary commands via unsanitized input and escalate privileges to root using a vulnerable SUID binary.
- 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-2012-10041?
CVE-2012-10041 is a critical command injection vulnerability in WAN Emulator, published on 8 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
WAN Emulator v2.3 contains two unauthenticated command execution vulnerabilities. The result.php script calls shell_exec() with unsanitized input from the pc POST parameter, allowing remote attackers to execute arbitrary commands as the www-data user. The system also includes a SUID-root binary named dosu, which is vulnerable to command injection via its first argument. An attacker can exploit both flaws in sequence to achieve full remote code execution and escalate privileges to root.
Weakness: CWE-78
Which versions are affected by CVE-2012-10041?
How do I fix CVE-2012-10041?
No fix has been published for CVE-2012-10041 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-2012-10041 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-10041 exists.
Public exploit code: 1 Metasploit module.
Sources
Also known as GHSA-w6rh-fp3w-8jj5.