Skip to main content

Red Hat Satellite EUVDEUVD-2026-90916

| CVE-2026-12540 HIGH
OS Command Injection (CWE-78)
2026-10-01 redhat GHSA-c5q9-9fc7-jgxp
8.2
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain sudo grant for errors:fetch_log task
  2. Delivery
    Craft request_id with shell metacharacters
  3. Exploit
    Break out of grep command via injection
  4. Execution
    Execute arbitrary code at elevated scope
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Red Hat Satellite 6.19 for RHEL 9 patch: 0:3.18.0.14-1.el9sat

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

Vendor (redhat) PRIMARY 8.2 HIGH
AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 8.2 HIGH

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.

3.1 AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat 8.2 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.3%
Top 31% exploitable
Prevalence
Medium
Red Hat Satellite/Foreman: common RHEL enterprise management tool, not universal
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 1.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2013-2121 MEDIUM POC
6.0 Jul 31

Eval injection vulnerability in the create method in the Bookmarks controller in Foreman before 1.2.0-RC2 allows remote

CVE-2013-2113 MEDIUM POC
6.0 Jul 31

The create method in app/controllers/users_controller.rb in Foreman before 1.2.0-RC2 allows remote authenticated users w

CVE-2014-0007 HIGH POC
7.5 Jun 20

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

CVE-2018-14643 CRITICAL
9.8 Sep 21

An authentication bypass flaw was found in the smart_proxy_dynflow component used by Foreman. Rated critical severity (C

CVE-2014-0208 MEDIUM POC
5.4 Oct 16

Cross-site scripting (XSS) vulnerability in the search auto-completion functionality in Foreman before 1.4.4 allows remo

CVE-2016-3728 HIGH
8.8 May 20

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

CVE-2026-96659 CRITICAL
9.1 Oct 01

Authenticated users with low-level Viewer permissions in Red Hat Satellite 6.19 (and upstream Foreman) can exploit templ

CVE-2023-0462 CRITICAL
9.1 Sep 20

An arbitrary code execution flaw was found in Foreman. Rated critical severity (CVSS 9.1), this vulnerability is remotel

CVE-2023-0118 CRITICAL
9.1 Sep 20

An arbitrary code execution flaw was found in Foreman. Rated critical severity (CVSS 9.1), this vulnerability is remotel

CVE-2014-0192 MEDIUM POC
5.0 May 08

Foreman 1.4.0 before 1.5.0 does not properly restrict access to provisioning template previews, which allows remote atta

CVE-2026-12405 HIGH
8.8 Oct 01

Command injection in the Red Hat Satellite job invocation API (/api/v2/job_invocations), shipped via the rubygem-foreman

CVE-2026-96658 HIGH
8.8 Oct 01

Remote code execution in Foreman's safemode-protected templating engine, shipped in Red Hat Satellite 6.19 for RHEL 9, l

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy