Domoticz udevices authorization flaw enables low-privilege Lua parser invocation

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-75520?

CVE-2026-75520 is a vulnerability classified as Improper Limitation of a Pathname to a Restricted Directory and Missing Authorization, affecting domoticz (affected versions: <= 2026.2). This vulnerability is rated Medium, with a CVSS score of 5.4. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Domoticz is a free, open source home automation system for Linux, Windows, macOS, and Raspberry Pi. Prior to 2026.3, the udevices JSON command handler, Cmd_UpdateDevices in main/WebServerCmds.cpp, performed no session.rights check before invoking a Lua parser script, while its sibling command handlers gate access by role. A low-privilege authenticated user could trigger execution of an existing operator-installed Lua parser script with attacker-controlled input through the GET /json.htm endpoint with type=command and param=udevices. The script parameter also lacked a .. path-traversal guard: CLuaHandler::executeLuaScript in main/LuaHandler.cpp constructed the filename from the parser directory and the supplied script name before passing it to luaL_loadfile. Execution is limited to already-installed valid Lua files; this is not arbitrary code execution, and the advisory states that file-write and upload paths require administrator privileges. This issue is addressed in version 2026.3.

Affected products and scope

  • Domoticz: versions <= 2026.2 are confirmed affected.
  • Domoticz 2026.3: confirmed by the advisory and project release as patched.
  • The fix adds a session.rights check in Cmd_UpdateDevices and rejects script names containing .. in CLuaHandler::executeLuaScript. The status of parallel branches or other versions is not separately established by the record.

Technical details

Domoticz processes the udevices JSON command in Cmd_UpdateDevices in main/WebServerCmds.cpp. The handler reads the script parameter and calls luaScript.executeLuaScript(script, content, allParameters) without checking session.rights, unlike related handlers that enforce role-based access.

In CLuaHandler::executeLuaScript in main/LuaHandler.cpp, the filename is built from the parser directory and the supplied script value before being passed to luaL_loadfile. Before the fix, the value was not rejected when it contained .., creating a path-traversal route to existing files outside the intended parser directory if the target file could be loaded successfully.

The supported attack preconditions are an authenticated low-privilege account and access to the Domoticz JSON endpoint. The parser input can be controlled by that user. This is not arbitrary code execution: the file must already exist and be valid Lua, while file-write and upload paths require administrator privileges. The precise effects depend on the installed parser script and are not established by the available evidence.

Exploitability

The issue is reachable over the network through GET /json.htm with type=command, param=udevices, and a script parameter. An attacker needs an authenticated Domoticz account with low privileges; no additional user interaction is required, and the supplied attack characteristics describe low complexity.

The advisory states that a low-privilege user, specifically a SWITCHER with rights=1, could trigger an operator-installed Lua parser and provide attacker-controlled input. The patch also adds a check that rejects VIEWER and NONE users and rejects script names containing .. in the loader.

The supplied record marks public_exploit as false and does not mark known exploitation. This is the record status, not proof that exploitation has never occurred in the wild.

Technical impact

The primary technical outcome is that an authenticated low-privilege user can invoke a Lua parser that should be subject to role-based authorization and provide input under the user's control. If the parser performs sensitive operations, this could reduce confidentiality or integrity within the permissions granted to Domoticz and that script.

Path traversal allows the script parameter to reference an existing file outside the intended parser directory, but the file must already exist and be accepted as valid Lua by luaL_loadfile. The issue does not permit the attacker to create or upload a file, is not described as arbitrary code execution, and does not change the security scope of the affected component. The practical organisational impact depends on the installed parser scripts and the data or device actions they handle.

Business impact

The flaw breaks the intended authorization boundary between low-privilege Domoticz accounts and operator-installed Lua parser scripts.

  • A low-privilege user can invoke a parser that should be protected by a role gate and supply input under the user's control.
  • If a parser reads sensitive data or changes system state, this could cause limited confidentiality or integrity impact within the privileges available to Domoticz. The specific effect depends on the installed script.
  • Path traversal expands selection to existing files only. It does not provide a low-privilege ability to create or upload code because those paths require administrator privileges.
  • The record does not establish a standalone availability impact or identify a specific breach scenario.

Remediation

  1. Upgrade Domoticz to 2026.3, the confirmed patched release.
  2. If an upgrade is not immediately possible, restrict network access to the Domoticz web interface to trusted users and networks. This is a precautionary compensating control, not a replacement for the patch.
  3. Review low-privilege accounts, operator-installed Lua parser scripts, and filesystem permissions on the parser directory. Pay particular attention to scripts that read data or change system state.
  4. Review web and application logs for udevices requests from low-privilege accounts, if query strings or parser execution events are retained.
  5. Do not treat removal of one parser as a complete fix because the issue includes both missing authorization and path traversal in the loader. The status of branches outside the versions listed above should be verified separately.

Detection

  1. Inventory running Domoticz versions and identify systems that remain on an affected branch.
  2. If the web server or reverse proxy retains query strings, search for requests to GET /json.htm containing type=command, param=udevices, and a script parameter, especially requests made by low-privilege accounts.
  3. Review the inventory of operator-installed .lua files in the configured parser directory. The presence of parser files does not prove exploitation, but it is directly relevant to the impact limitation described by the advisory.
  4. Correlate suspicious requests with application or parser logs if the deployment records Lua execution. No product-specific event or IOC is provided, and the absence of log evidence does not prove safety.
  5. If query strings are not retained or historical logs have rotated out, record that past use of the endpoint cannot be determined with confidence.
Sources (13)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.