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.