Command Injection in Red Hat Satellite (CVE-2026-12405)
A command injection vulnerability in the rubygem-foreman_remote_execution component allows authenticated attackers to execute arbitrary shell commands via the Satellite API.
CVE search metadata
CVE search record: CVE-2026-12405. Severity: high. CVSS: 8.8. KEV: no. Product: Satellite, Foreman. Brief: Command Injection in Red Hat Satellite (CVE-2026-12405). Brief link: https://feed.craftedsignal.io/briefs/2026-10-cve-2026-12405/
What's new
- 1. added detection rule: Detects CVE-2026-12423 Exploitation - Authentication Bypass in /unattended/provision Oct 1, 18:13 via nvd
CVE-2026-12405 is a command injection vulnerability affecting the rubygem-foreman_remote_execution component within Red Hat Satellite. The issue stems from insufficient input sanitization of the 'effective_user' parameter within the /api/v2/job_invocations endpoint. When a job template is configured with the 'effective_user' property set to 'overridable: true', an authenticated user with sufficient permissions to execute job templates can inject malicious shell commands. These commands are executed by the Satellite server during the instantiation of the job execution environment. Because the injection occurs at the API level rather than within the job template content itself, attackers can bypass intended restrictions, leading to arbitrary code execution on the infrastructure with the privileges of the defined execution user.
Impact
Successful exploitation allows an authenticated user to gain arbitrary command execution on Red Hat Satellite infrastructure. This vulnerability poses a high risk to environment integrity, as it grants attackers the ability to execute commands with the privileges of the targeted execution user, potentially leading to privilege escalation, lateral movement, or full compromise of the Satellite server and managed infrastructure.
Recommendation
- Review all Job Templates in Red Hat Satellite and identify templates where the 'effective_user' property is set to 'overridable: true'.
- Implement strict access controls for users with permissions to execute job templates to limit the exposure to this API endpoint.
- Apply patches provided by Red Hat as soon as they become available to address the underlying sanitization flaw in rubygem-foreman_remote_execution.
- Audit logs for anomalous POST requests to the /api/v2/job_invocations endpoint, specifically monitoring the 'effective_user' field for shell metacharacters or unexpected input patterns.
Immediate actions
Review Job Templates for effective_user set to overridable: true
Mitigations
Identify and disable overridable status for sensitive job templates
CVE-2026-12405
Detection coverage 2
Detect CVE-2026-12405 Exploitation - Command Injection in Satellite API
highDetects exploitation of CVE-2026-12405 by monitoring API requests to job_invocations containing shell injection characters in the effective_user parameter.
Detects CVE-2026-12423 Exploitation - Authentication Bypass in /unattended/provision
highDetects unauthenticated requests to the /unattended/provision endpoint that lack a token parameter, indicating potential exploitation of the host_verifier.rb logic flaw.
Detection queries are available on the platform. Get full rules →