# CVE-2012-10040

## Summary

- **CVE ID:** CVE-2012-10040
- **Severity:** CRITICAL
- **CVSS Score:** 9.4 (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)
- **CWE:** CWE-78
- **Published:** Aug 11, 2025
- **Last Modified:** Apr 7, 2026

## 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.

## Affected Products

- Openfiler — Openfiler (2.x)
- Openfiler — Openfiler (2.0)

## References

- [CNA](https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/linux/http/openfiler_networkcard_exec.rb)
- [CNA](https://www.exploit-db.com/exploits/21191)
- [CNA](https://www.openfiler.com/)
- [CNA](https://sourceforge.net/projects/openfiler/)
- [CNA](http://web.archive.org/web/20210922060411/https://itsecuritysolutions.org/2012-09-06-Openfiler-v2.x-multiple-vulnerabilities/)

## Exploitation Prediction (EPSS)

- **EPSS Score:** 52.23%
- **EPSS Percentile:** 97.9

---
_Exported from OnDuty AI Vulnerability Intelligence on 2026-09-17._