Description
MajorDoMo (aka Major Domestic Module) is vulnerable to unauthenticated OS command injection via rc/index.php. The $param variable from user input is interpolated into a command string within double quotes without sanitization via escapeshellarg(). The command is inserted into a database queue by safe_exec(), which performs no sanitization. The cycle_execs.php script, which is web-accessible without authentication, retrieves queued commands and passes them directly to exec(). An attacker can exploit a race condition by first triggering cycle_execs.php (which purges the queue and enters a polling loop), then injecting a malicious command via the rc endpoint while the worker is polling. The injected shell metacharacters expand inside double quotes, achieving remote code execution within one second.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sergejey | MajorDoMo | — | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
MajorDoMo Remote Command Injection via cycle_execs Race Condition
exploit/multi/http/majordomo_cmd_injection_rce
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- MajorDoMo - OS Command Injection via Race Condition http/cves/2026/CVE-2026-27175.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- MajorDoMo Revisited: What I Missed in 2023 third-party-advisory
- Fix PR: sergejey/majordomo#1177 issue-tracking patch
- VulnCheck Advisory: MajorDoMo Command Injection in rc/index.php via Race Condition third-party-advisory