Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain sudo grant for errors:fetch_log task
-
DeliveryCraft request_id with shell metacharacters
-
ExploitBreak out of grep command via injection
-
ExecutionExecute arbitrary code at elevated scope
-
ImpactFull host compromise / privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an attacker who already holds a sudo grant permitting execution of the specific foreman-rake errors:fetch_log task on a Red Hat Satellite 6 / Foreman host; the request_id parameter must be attacker-controllable and is passed to an underlying shell command (typically grep) without adequate neutralization, so injected metacharacters (;, ", |) escape the intended command. This is NOT remote or unauthenticated: it is gated by local access and a pre-existing, narrowly-scoped privileged sudo permission, which is the primary limiting factor and means exploitation is confined to operators or compromised accounts already trusted with that task. No end-user interaction is required once the sudo grant exists. |
| Impact | This is a privilege-escalation-to-RCE flaw rather than a remotely exploitable one. The CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N/S:C) is internally consistent with the description: exploitation requires local access and HIGH privileges - specifically sudo permission to run the foreman-rake errors:fetch_log task - and the scope change (S:C) reflects breaking out of that constrained sudo command boundary into arbitrary OS-level code execution. The 8.2 base score is driven almost entirely by the scope change plus the C:H/I:H/A:H impact, not by ease of access. No EPSS probability, no CISA KEV listing, and no public POC are present in the provided data, so there is no evidence of active exploitation or automated weaponization. Realistically this is a meaningful but gated issue: an attacker must already hold a specific, non-trivial sudo grant, which makes it primarily a sudo-sandbox-escape / local privilege-escalation vector for semi-trusted operators rather than a widespread internet-facing threat. There are no conflicting signals in the data; the main gap is the absence of EPSS/KEV/POC telemetry, which is expected for a recently published, authentication-gated local flaw and should not be read as either reassurance or alarm. |
| Exploit ScenarioDerived | A semi-trusted administrator or automation account has been granted narrow sudo rights to run only the foreman-rake errors:fetch_log task on a Red Hat Satellite / Foreman host. Instead of supplying a benign log identifier, they pass a request_id containing shell metacharacters (e.g. '; id #' or '| bash') that break out of the underlying grep invocation. The injected command then executes with the privileges of the sudo-run rake task, escalating the operator from a constrained command to arbitrary code execution on the host. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
Command injection in the Foreman foreman-rake errors:fetch_log task shipped with Red Hat Satellite 6 allows a local user who already holds a sudo grant for that specific rake task to break out of the intended grep invocation and run arbitrary commands with the privileges of the task. The request_id parameter reaches the underlying shell command without adequate metacharacter neutralization, so an attacker can inject ';', '"', or '|' and achieve command execution on the Satellite/Foreman host. The CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H) confirms this is a local, high-privilege-context privilege escalation rather than a remotely reachable flaw, and no public exploit code or CISA KEV entry was identified at time of analysis.
RemediationAI
Apply the Red Hat vendor fix delivered via errata RHSA-2026:74503 (https://access.redhat.com/errata/RHSA-2026:74503), which addresses the inadequate shell neutralization in the foreman-rake errors:fetch_log task; consult the CVE page https://access.redhat.com/security/cve/CVE-2026-12540 for the exact patched package versions for Satellite 6 and the 6.19-for-RHEL-9 stream. If patching must be deferred, the most effective compensating control is to remove or tighten the sudoers entry that permits execution of foreman-rake errors:fetch_log (and any blanket sudo grant on foreman-rake generally), restricting it to fully trusted administrators - the trade-off is that routine log-fetch workflows performed by operators will break and must be handled by a privileged admin instead. As a secondary measure, treat the request_id input as untrusted at the application layer: wrap it in strict allowlisting (for example, restrict it to an expected UUID/alphanumeric format and reject any value containing shell metacharacters such as ;, ", |, $, backticks, or newlines) before it reaches the command line, and ensure the value is passed as a discrete argument rather than interpolated into a shell string - though note this is a code-level fix that should come from the vendor rather than ad hoc local edits that RPM upgrades may overwrite. Finally, monitor sudo and audit logs for foreman-rake invocations containing shell metacharacters or unexpected trailing commands, since this is a high-severity local escalation and any successful exploitation would surface as anomalous root-context command execution on the Satellite host.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic OS command injection (CWE-78) in the Foreman management layer that ships with Red Hat Satellite 6. The foreman-rake errors:fetch_log task, which is designed to pull specific error entries out of Satellite's logs, takes a user-supplied request_id and concatenates it into a shell command line - typically a grep call - without escaping or quoting shell metacharacters. Because the value is interpreted by the shell rather than passed as an inert argument, characters such as ';', '"', or '|' terminate the intended command and let the caller append arbitrary commands. Per the CPE data the affected packages are cpe:2.3:a:red_hat:red_hat_satellite_6:*:*:*:*:*:*:*:* and cpe:2.3:a:red_hat:red_hat_satellite_6.19_for_rhel_9:*:*:*:*:*:*:*:*, and the underlying upstream component is the open-source Foreman project. The CVSS scope is marked changed (S:C), reflecting that exploitation escapes the Foreman application context and yields host-level command execution as the task's user, usually root given how foreman-rake is normally delegated via sudo. The vector also carries PR:H, meaning the attacker must already possess an administrative sudo grant scoped to this task - the vulnerability is a boundary-crossing escalation from 'trusted operator with one narrow command' to 'arbitrary code on the Satellite server', not an unauthenticated remote entry point.
Know when Foreman gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Requires local access and a high-privilege sudo grant to run the rake task (AV:L, PR:H); injection trivially escapes grep (AC:L), and escaping the sudo boundary to full code execution justifies S:C with C/I/A:H.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Foreman. A command injection vulnerability exists in the foreman-rake errors:fetch_log task. The request_id parameter is passed to an underlying system command (typically grep) without adequate shell neutralization. While the task is intended to fetch specific log entries, an attacker with sudo permissions to execute this rake task can inject shell metacharacters (such as ;, ", or |) to break out of the intended command and execute arbitrary code.
Executive ViewAI
A command injection flaw in Red Hat Satellite 6's Foreman automation layer allows a local user who already holds a narrowly scoped sudo grant for the foreman-rake errors:fetch_log task to escalate to arbitrary command execution with that task's privileges - typically root on the Satellite host. Because Satellite is the centralized management plane used to patch and configure the broader server estate, a compromised Satellite host could serve as a pivot point for wide-scale disruption or supply-chain-style manipulation of managed systems. Leadership should care that this risk is concentrated in a small number of highly trusted administrators and hosts whose compromise carries disproportionate organizational impact.
No vendor-released patch identified at time of analysis. Interim mitigations: remove or tightly scope the sudo grant for the foreman-rake errors:fetch_log task so only the minimum necessary accounts retain it; replace direct rake invocation with a wrapper that validates request_id and rejects shell metacharacters (';', '"', '|', '&', '$()', backticks); pin sudoers entries to exact command paths with no wildcards; enforce least privilege and credential hygiene for Satellite administrators; enable verbose sudo and process auditing with alerting on anomalous command execution or unexpected outbound connections from Satellite/Foreman hosts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Eval injection vulnerability in the create method in the Bookmarks controller in Foreman before 1.2.0-RC2 allows remote
The create method in app/controllers/users_controller.rb in Foreman before 1.2.0-RC2 allows remote authenticated users w
The Smart-Proxy in Foreman before 1.4.5 and 1.5.x before 1.5.1 allows remote attackers to execute arbitrary commands via
An authentication bypass flaw was found in the smart_proxy_dynflow component used by Foreman. Rated critical severity (C
Cross-site scripting (XSS) vulnerability in the search auto-completion functionality in Foreman before 1.4.4 allows remo
Eval injection vulnerability in tftp_api.rb in the TFTP module in the Smart-Proxy in Foreman before 1.10.4 and 1.11.x be
Authenticated users with low-level Viewer permissions in Red Hat Satellite 6.19 (and upstream Foreman) can exploit templ
An arbitrary code execution flaw was found in Foreman. Rated critical severity (CVSS 9.1), this vulnerability is remotel
An arbitrary code execution flaw was found in Foreman. Rated critical severity (CVSS 9.1), this vulnerability is remotel
Foreman 1.4.0 before 1.5.0 does not properly restrict access to provisioning template previews, which allows remote atta
Command injection in the Red Hat Satellite job invocation API (/api/v2/job_invocations), shipped via the rubygem-foreman
Remote code execution in Foreman's safemode-protected templating engine, shipped in Red Hat Satellite 6.19 for RHEL 9, l
EUVD-2026-90916
GHSA-c5q9-9fc7-jgxp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB