{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2026.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "73ed0495af6de3309f27cfc0091e803300ab5ccd"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "2026.3",
                "range": [
                  {
                    "fixed": "f734fde31a4c2ecab3edd825ceb9854719444f64"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "73ed0495af6de3309f27cfc0091e803300ab5ccd"
            },
            {
              "fixed": "f734fde31a4c2ecab3edd825ceb9854719444f64"
            }
          ],
          "repo": "https://github.com/domoticz/domoticz",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8rv5-x8wv-c5c4"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22",
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75520.json"
  },
  "details": "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.",
  "id": "CVE-2026-75520",
  "modified": "2026-11-05T02:31:03.763122562Z",
  "published": "2026-10-28T22:30:59.693Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/domoticz/domoticz/blob/2026.3/main/WebServerCmds.cpp#L3445-L3451"
    },
    {
      "type": "WEB",
      "url": "https://github.com/domoticz/domoticz/releases/tag/2026.3"
    },
    {
      "type": "WEB",
      "url": "https://github.com/domoticz/libwebem/blob/dfe946fa32f4c211662e47ef55b8cedfc50a6a76/include/libwebem/session.h#L10-L17"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75520.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/domoticz/domoticz/security/advisories/GHSA-8rv5-x8wv-c5c4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-75520"
    },
    {
      "type": "FIX",
      "url": "https://github.com/domoticz/domoticz/commit/73ed0495af6de3309f27cfc0091e803300ab5ccd"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Domoticz: Missing authorization and path traversal in the udevices Lua parser handler"
}