Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-12405 Overview
CVE-2026-12405 is a command injection vulnerability in rubygem-foreman_remote_execution, the Ruby gem that powers remote job execution in Red Hat Satellite. The flaw resides in the Satellite API endpoint /api/v2/job_invocations. When a job template exposes the effective_user property as overridable: true, the application fails to sanitize user-supplied values for that parameter. An authenticated attacker with permission to execute job templates can inject arbitrary shell commands that run on target infrastructure under the privileges of the execution user. The issue is tracked under [CWE-78] (OS Command Injection).
Critical Impact
Authenticated users with job execution rights can run arbitrary shell commands on managed Satellite hosts, leading to full compromise of target systems.
Affected Products
- Red Hat Satellite (via rubygem-foreman_remote_execution)
- Foreman Remote Execution plugin
- Red Hat Satellite Capsule hosts invoking affected job templates
Discovery Timeline
- 2026-10-01 - CVE-2026-12405 published to NVD
- 2026-10-07 - OpenWall OSS-Security mailing list update published
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-12405
Vulnerability Analysis
The vulnerability affects how Satellite constructs the job execution environment before dispatching remote tasks. Job templates can mark the effective_user field as overridable: true, allowing API clients to supply a value at invocation time. The Satellite server interpolates the submitted value into the shell command used to switch execution context on the target host. Because the server does not sanitize or quote the string, shell metacharacters passed through the API are interpreted by the shell during job instantiation.
Exploitation does not require crafting a malicious playbook. The injection occurs server-side during job preparation, so any benign job template that exposes effective_user becomes an entry point. Successful exploitation yields command execution on managed infrastructure with the rights of the execution user, which is frequently root or a privileged service account.
Root Cause
The root cause is improper neutralization of special elements used in an OS command [CWE-78]. The effective_user parameter is concatenated into a shell invocation without escaping or allow-list validation, violating safe command construction practices.
Attack Vector
The attack vector is network-based against the Satellite API. An authenticated principal with permission to invoke job templates sends a crafted POST request to /api/v2/job_invocations, supplying shell metacharacters in the effective_user field. The payload executes when Satellite instantiates the job on the target host. See the Red Hat CVE Analysis for CVE-2026-12405 for additional vendor detail.
// No verified proof-of-concept code is published for CVE-2026-12405.
// Refer to the Red Hat advisories listed under Patch Information for
// vendor technical details and fix descriptions.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-12405
Indicators of Compromise
- Unexpected POST requests to /api/v2/job_invocations containing shell metacharacters (;, |, &&, backticks, $( ) within the effective_user field.
- Job invocation records in Satellite where effective_user contains non-identifier characters or whitespace.
- Unusual child processes spawned by the Foreman proxy or remote execution worker on managed hosts.
Detection Strategies
- Audit Satellite job invocation history and alert on effective_user values that fail a strict username regex such as ^[a-z_][a-z0-9_-]*$.
- Inspect webserver and Rails logs for API requests whose JSON body includes encoded shell operators within job invocation parameters.
- Correlate job executions with host-level process telemetry to spot unexpected shells, interpreters, or network tooling spawned under the execution user.
Monitoring Recommendations
- Enable verbose audit logging for the Foreman remote execution plugin and forward events to a central SIEM.
- Monitor privileged account activity on Satellite-managed hosts for commands initiated outside of approved playbooks.
- Review role assignments granting execute_jobs_on_infrastructure_hosts and track changes to job template overridable flags.
How to Mitigate CVE-2026-12405
Immediate Actions Required
- Apply the Red Hat Satellite updates referenced in RHSA-2026:74503 through RHSA-2026:74506 to patched versions of rubygem-foreman_remote_execution.
- Audit all job templates and set effective_useroverridable to false wherever runtime override is not strictly required.
- Restrict the execute_jobs_on_infrastructure_hosts and related job invocation permissions to a minimal set of trusted users.
Patch Information
Red Hat has released fixes through the following advisories: RHSA-2026:74503, RHSA-2026:74504, RHSA-2026:74505, and RHSA-2026:74506. Additional technical context is available in the Red Hat Bug Report #2488952 and the OpenWall OSS-Security update.
Workarounds
- Edit affected job templates and change effective_user to overridable: false to block API-supplied overrides until patches are applied.
- Remove or scope down roles that grant job invocation permissions to non-administrative users.
- Place the Satellite API behind network controls that limit access to trusted management networks and operators.
# Example: list job templates and inspect effective_user overridable flags
hammer job-template list
hammer job-template info --id <TEMPLATE_ID> | grep -A2 effective_user
# After review, disable override on templates where it is not required
hammer job-template update --id <TEMPLATE_ID> \
--effective-user-overridable false
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

