CVE-2026-27175: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in sergejey MajorDoMo
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.
AI Analysis
Technical Summary
CVE-2026-27175 is a critical OS command injection vulnerability in MajorDoMo, an open-source home automation platform developed by sergejey. The vulnerability exists in the rc/index.php endpoint, where the $param user input is directly interpolated into a shell command string enclosed in double quotes without proper sanitization using escapeshellarg(). This unsanitized input is then inserted into a database queue by the safe_exec() function, which itself does not perform any sanitization. The cycle_execs.php script, which is accessible via the web without authentication, retrieves commands from this queue and executes them directly using PHP's exec() function. The vulnerability is exacerbated by a race condition: an attacker first triggers cycle_execs.php to purge the command queue and enter a polling loop, then injects a malicious command via the rc endpoint while the worker is polling. Because shell metacharacters expand inside the double quotes, the injected commands execute remotely within approximately one second. This flaw allows unauthenticated remote attackers to execute arbitrary OS commands on the server hosting MajorDoMo, potentially leading to full system compromise. The vulnerability affects all versions of MajorDoMo (version 0 indicated), and no authentication or user interaction is required to exploit it. The CVSS 4.0 score of 9.2 reflects the high impact on confidentiality, integrity, and availability, combined with the ease of exploitation and lack of required privileges. Although no known exploits are currently reported in the wild, the vulnerability's characteristics make it a critical threat that demands immediate attention from users of MajorDoMo.
Potential Impact
The impact of CVE-2026-27175 is severe for organizations using MajorDoMo as it allows unauthenticated remote attackers to execute arbitrary OS commands on the affected system. This can lead to complete system compromise, including unauthorized access to sensitive data, modification or deletion of critical files, installation of persistent malware, lateral movement within networks, and disruption of home automation services. The vulnerability compromises confidentiality, integrity, and availability simultaneously. Given that MajorDoMo is often deployed in home and small business automation environments, attackers could manipulate physical devices, causing safety risks or operational disruptions. The unauthenticated nature and rapid exploitation window (within one second) increase the likelihood of automated attacks and worm-like propagation. Organizations relying on MajorDoMo for critical automation should consider this a high-risk vulnerability that could lead to significant operational and reputational damage if exploited.
Mitigation Recommendations
To mitigate CVE-2026-27175, organizations should immediately update MajorDoMo to a patched version once available from the vendor. In the absence of an official patch, users should implement the following specific mitigations: 1) Restrict web access to cycle_execs.php and rc/index.php endpoints using network-level controls such as firewalls or web application firewalls (WAFs) to allow only trusted IP addresses. 2) Disable or remove the cycle_execs.php script if not essential for operation. 3) Implement input validation and sanitization on the $param variable to ensure shell metacharacters are properly escaped or disallowed. 4) Employ application-layer sandboxing or containerization to limit the impact of potential command execution. 5) Monitor logs for unusual command queue activity or unexpected execution patterns. 6) Use intrusion detection systems (IDS) to detect exploitation attempts targeting these endpoints. 7) Enforce the principle of least privilege on the server process running MajorDoMo to minimize damage from a successful exploit. These targeted mitigations go beyond generic advice by focusing on the specific vulnerable components and exploitation method described.
Affected Countries
United States, Germany, Russia, China, France, United Kingdom, Japan, South Korea, Italy, Canada
CVE-2026-27175: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in sergejey MajorDoMo
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-27175 is a critical OS command injection vulnerability in MajorDoMo, an open-source home automation platform developed by sergejey. The vulnerability exists in the rc/index.php endpoint, where the $param user input is directly interpolated into a shell command string enclosed in double quotes without proper sanitization using escapeshellarg(). This unsanitized input is then inserted into a database queue by the safe_exec() function, which itself does not perform any sanitization. The cycle_execs.php script, which is accessible via the web without authentication, retrieves commands from this queue and executes them directly using PHP's exec() function. The vulnerability is exacerbated by a race condition: an attacker first triggers cycle_execs.php to purge the command queue and enter a polling loop, then injects a malicious command via the rc endpoint while the worker is polling. Because shell metacharacters expand inside the double quotes, the injected commands execute remotely within approximately one second. This flaw allows unauthenticated remote attackers to execute arbitrary OS commands on the server hosting MajorDoMo, potentially leading to full system compromise. The vulnerability affects all versions of MajorDoMo (version 0 indicated), and no authentication or user interaction is required to exploit it. The CVSS 4.0 score of 9.2 reflects the high impact on confidentiality, integrity, and availability, combined with the ease of exploitation and lack of required privileges. Although no known exploits are currently reported in the wild, the vulnerability's characteristics make it a critical threat that demands immediate attention from users of MajorDoMo.
Potential Impact
The impact of CVE-2026-27175 is severe for organizations using MajorDoMo as it allows unauthenticated remote attackers to execute arbitrary OS commands on the affected system. This can lead to complete system compromise, including unauthorized access to sensitive data, modification or deletion of critical files, installation of persistent malware, lateral movement within networks, and disruption of home automation services. The vulnerability compromises confidentiality, integrity, and availability simultaneously. Given that MajorDoMo is often deployed in home and small business automation environments, attackers could manipulate physical devices, causing safety risks or operational disruptions. The unauthenticated nature and rapid exploitation window (within one second) increase the likelihood of automated attacks and worm-like propagation. Organizations relying on MajorDoMo for critical automation should consider this a high-risk vulnerability that could lead to significant operational and reputational damage if exploited.
Mitigation Recommendations
To mitigate CVE-2026-27175, organizations should immediately update MajorDoMo to a patched version once available from the vendor. In the absence of an official patch, users should implement the following specific mitigations: 1) Restrict web access to cycle_execs.php and rc/index.php endpoints using network-level controls such as firewalls or web application firewalls (WAFs) to allow only trusted IP addresses. 2) Disable or remove the cycle_execs.php script if not essential for operation. 3) Implement input validation and sanitization on the $param variable to ensure shell metacharacters are properly escaped or disallowed. 4) Employ application-layer sandboxing or containerization to limit the impact of potential command execution. 5) Monitor logs for unusual command queue activity or unexpected execution patterns. 6) Use intrusion detection systems (IDS) to detect exploitation attempts targeting these endpoints. 7) Enforce the principle of least privilege on the server process running MajorDoMo to minimize damage from a successful exploit. These targeted mitigations go beyond generic advice by focusing on the specific vulnerable components and exploitation method described.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-02-18T15:22:30.053Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 69962e786aea4a407ae921ef
Added to database: 2/18/2026, 9:26:16 PM
Last enriched: 3/6/2026, 9:11:37 PM
Last updated: 4/9/2026, 8:40:35 AM
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.