Exploit database

Vulnerability

CVE-2026-27174

MajorDoMo Unauthenticated Remote Code Execution via Admin Console Eval

Vulnerability details

Score
9.3
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

MajorDoMo (aka Major Domestic Module) allows unauthenticated remote code execution via the admin panel's PHP console feature. An include order bug in modules/panel.class.php causes execution to continue past a redirect() call that lacks an exit statement, allowing unauthenticated requests to reach the ajax handler in inc_panel_ajax.php. The console handler within that file passes user-supplied input from GET parameters (via register_globals) directly to eval() without any authentication check. An attacker can execute arbitrary PHP code by sending a crafted GET request to /admin.php with ajax_panel, op, and command parameters.

CVE Program

Exploit source choices

1 source
MajorDoMo Console Eval Unauthenticated RCE
MSF-multi--http--majordomo_console_eval_rceMetasploitLinux,PHP,Unix,Windows / remotePreferred

This module exploits an unauthenticated remote code execution vulnerability in MajorDoMo, an open-source home automation platform. The admin panel's PHP console is accessible without authentication due to a missing exit after redirect in modules/panel.class.php. The redirect("/") call intended to block unauthenticated users lacks an exit statement, so execution continues into the ajax panel handler which includes inc_panel_ajax.php unconditionally. Inside, the console handler passes the user-supplied command parameter directly to eval() via the evalConsole() function. The command, ajax_panel, and op parameters are all controllable via GET request through MajorDoMo's register_globals-style gr() function. This results in unauthenticated PHP code evaluation via a single GET request to /admin.php. All versions of MajorDoMo up to and including the latest release are affected. The fix is tracked in PR sergejey/majordomo#1177.

2026-02-18majordomo_console_eval_rce.rb