CVE-2012-10040 Openfiler v2.x NetworkCard Command Execution
Authenticated attackers can execute arbitrary commands via unsanitized input in Openfiler, escalating privileges to root due to misconfigured sudoers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2012-10040?
CVE-2012-10040 is a critical command injection vulnerability in Openfiler, published on 11 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Openfiler v2.x contains a command injection vulnerability in the system.html page. The device parameter is used to instantiate a NetworkCard object, whose constructor in network.inc calls exec() with unsanitized input. An authenticated attacker can exploit this to execute arbitrary commands as the openfiler user. Due to misconfigured sudoers, the openfiler user can escalate privileges to root via sudo /bin/bash without a password.
Weakness: CWE-78
Which versions are affected by CVE-2012-10040?
How do I fix CVE-2012-10040?
No fix has been published for CVE-2012-10040 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-10040 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2012-10040 exists.
Public exploit code: 1 Metasploit module.
Sources
Also known as GHSA-vxcv-gc68-4r3q.