CVE-2026-75520

Domoticz: Missing authorization and path traversal in the udevices Lua parser handler

Published Oct 28, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A missing authorization check in the udevices command handler allows a low‑privileged authenticated user to trigger any Lua parser script that an operator has installed. In addition, the parser lacks a guard against path traversal via the script name, permitting the attacker to specify a file path that contains ‘..’ characters. Although this vulnerability does not provide arbitrary code execution, the ability to run operator‑installed Lua scripts can lead to unintended device control or privilege escalation. The weakness is a combination of missing authorization (CWE‑862), missing access control (CWE‑425), and path traversal (CWE‑22).

Affected Systems

The flaw affects all Domoticz releases older than version 2026.3 on Linux, Windows, macOS, and Raspberry Pi. These versions expose the udevices command over the JSON API without enforcing a session rights check and allow direct Lua script execution.

Risk and Exploitability

The CVSS score of 5.4 indicates a moderate impact, and the EPSS score is 0.00279, indicating a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog, suggesting no known widespread exploitation. The attack vector is inferred to be a web‑based HTTP GET request to the JSON endpoint with parameters type=command and param=udevices, requiring only a low‑privileged authenticated session. The risk to a system is that an attacker can run arbitrary operator‑installed Lua code and potentially gain unintended control over home‑automation devices.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Domoticz to version 2026.3 or later, which adds the missing authorization check and path‑traversal guard for the udevices command.
  • As a temporary workaround, restrict the udevices command for all non‑administrator roles or disable the command entirely in the API configuration to block low‑privileged users from triggering Lua scripts.
  • Ensure the Lua script directory is protected by file‑system permissions so that only authorized users can modify or add scripts, mitigating the impact of any remaining path‑traversal flaws.

Generated by OpenCVE AI on October 31, 2026 at 02:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Domoticz
Domoticz domoticz
Vendors & Products Domoticz
Domoticz domoticz
Type Values Removed Values Added
Description 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.
Title Domoticz: Missing authorization and path traversal in the udevices Lua parser handler
Weaknesses CWE-22
CWE-862
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-425

    Direct Request ('Forced Browsing')

  • CWE-862

    Missing Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 1:49 PM
Reserved
Aug 17, 2026, 8:49 PM
Status
Deferred
Published
Oct 28, 2026, 11:17 PM
Modified
Nov 3, 2026, 2:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 10:30 PM