This module exploits a SQL injection vulnerability in openDCIM's install.php endpoint (CVE-2026-28515) to achieve remote code execution. The install.php script remains accessible after installation and processes LDAP configuration parameters via UpdateParameter() without authentication or input sanitization, allowing stacked SQL queries. The exploit chain works by injecting SQL through the LDAP configuration form to overwrite the Graphviz dot binary path in fac_Config, then triggering report_network_map.php which calls exec() with the poisoned value. A backup of the original configuration is created before exploitation and restored after payload delivery. Tested against openDCIM 23.04 through 25.01 on Ubuntu with Apache.
Exploit database
Vulnerability
CVE-2026-28516
openDCIM <= 23.04 SQL Injection in Config::UpdateParameter
Vulnerability details
- Score
- 9.3
- Severity
- critical
CVSS 4.0 · VulnCheck
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDescription
openDCIM version 23.04, through commit 4467e9c4, contains a SQL injection vulnerability in Config::UpdateParameter. The install.php and container-install.php handlers pass user-supplied input directly into SQL statements using string interpolation without prepared statements or proper input sanitation. An authenticated user can execute arbitrary SQL statements against the underlying database.
CVE ProgramExploit source choices
1 sourceopenDCIM install.php SQL Injection to RCE
2026-02-28opendcim_install_sqli_rce.rb