CVE-2012-10040
Openfiler v2.x NetworkCard Command Execution
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.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 10.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.3% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 11 Aug 2025):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of openfiler and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openfiler
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2012-10040 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2012-10040RHEL, Rocky, Alma, Fedora
rpm -q openfiler
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2012-10040Alpine
apk list --installed | grep -i openfilerWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2012-10040
trivy image --scanners vuln IMAGE | grep CVE-2012-10040
Patchbrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Exploits and proof of concept
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/openfiler_networkcard_exec.rb raw.githubusercontent.com · exploit
- https://www.exploit-db.com/exploits/21191 exploit-db.com · exploit
- http://web.archive.org/web/20210922060411/https://itsecuritysolutions.org/2012-09-06-Openfiler-v2.x-multiple-vulnerabilities/ web.archive.org · technical description, exploit
Other references
- https://www.openfiler.com/ openfiler.com · product
- https://sourceforge.net/projects/openfiler/ sourceforge.net · product
Source: the record CVE-2012-10040 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.