Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryCraft template abusing delegated methods
-
ExploitAppend functions to safemode allow-list
-
ExecutionBypass templating sandbox on render
-
ImpactExecute arbitrary commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid, authenticated Foreman/Red Hat Satellite account with low-level permissions that allow interacting with the safemode templating engine (i.e., the ability to create or render templates). The specific flaw is improper handling of delegated methods, which lets the attacker append unauthorized functions to the sandbox's allowed-execution list and thereby escape the safemode sandbox. Limiting factors: an authenticated account is mandatory (PR:L), so fully anonymous exploitation is not possible; exploitation is not automatable per SSVC and requires access to template functionality, which narrows the realistic attacker set to existing portal users or anyone able to obtain low-privilege credentials. No user interaction is required once access is obtained, and default network reachability of the Satellite web UI makes it remotely exploitable. |
| Impact | Signals are largely consistent and point to a serious but not emergency-level issue. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, base 8.8) describes network-reachable, low-complexity exploitation requiring only low-level authenticated privileges and no user interaction, yielding full confidentiality, integrity, and availability impact - consistent with the CWE-94 code-injection/RCE description. SSVC tempers this: Exploitation is 'none' (no observed exploitation), Automatable is 'no' (exploitation requires an authenticated foothold and cannot be mass-scanned/wormed), while Technical Impact is 'total' (agreeing with the CVSS C/I/H:H impacts). EPSS is 0.66% at the 50th percentile - a modest 30-day exploitation probability that aligns with the SSVC 'none/not automatable' reading, suggesting any future exploitation would be targeted by an already-authenticated actor rather than widespread. The vulnerability is NOT in CISA KEV and no public exploit code is referenced, so exploitation status is 'no public exploit identified at time of analysis.' Net: a real priority to patch for organizations running Red Hat Satellite/Foreman because any low-privilege portal user can reach full server RCE, but it is gated behind authentication and is not opportunistically wormable, so it is a 'patch promptly' rather than a 'drop everything' item. No major conflicts exist between signals; the main caveat is that the required privilege level is 'low' per CVSS but the real-world prerequisite is specifically template-related permissions (see exploitation_conditions), which the vector abstracts away. |
| Exploit ScenarioDerived | An attacker who holds any low-privilege authenticated account on a Foreman/Red Hat Satellite web interface crafts a template that abuses improperly handled delegated methods to append unauthorized functions to the safemode sandbox's allow-list. When the template is rendered, the smuggled functions execute outside the sandbox, running arbitrary OS commands on the Satellite/Foreman host. No user interaction or elevated privileges are needed, but a valid account is required; no public exploit code is currently identified. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 18, 2026
Remote code execution in Foreman's safemode-protected templating engine, shipped in Red Hat Satellite 6.19 for RHEL 9, lets an authenticated user with only low-level template privileges escape the sandbox and execute arbitrary commands on the Satellite server. The flaw stems from improper handling of delegated methods, which allows an attacker to append unauthorized functions to the sandbox's allowed-execution list; no user interaction is required beyond rendering or creating a template, and the Satellite web UI is network-reachable by default. Vendor patches are available via Red Hat errata, EPSS is modest (0.66%, ~50th percentile), and no public exploit code or confirmed active exploitation was identified at time of analysis (SSVC exploitation: none, not automatable).
Earlier versions of this analysis (1)
Authenticated remote code execution in Foreman and Red Hat Satellite 6.19 for RHEL 9 allows an attacker who holds only low-level permissions to bypass the safemode sandbox in the provisioning/report templating engine and execute arbitrary commands on the management host, carrying a vendor score of 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H). Exploitation is authenticated (CVSS vector PR:L) and requires the ability to author or render templates; the scope-changed impact is severe because a successful escape yields control of the Satellite/Foreman management server, not just the template context, but the prerequisite of valid credentials plus template privileges means the 9.9 rating overstates how easily the issue is reached in hardened deployments. No public exploit code has been identified at time of analysis and the flaw is not listed in CISA KEV.
RemediationAI
Vendor-released patch: apply the Red Hat Satellite 6.19 for RHEL 9 erratum that delivers build 0:3.18.0.14-1.el9sat, distributed through RHSA-2026:74503, RHSA-2026:74504, RHSA-2026:74505 and RHSA-2026:74506 (tracking page: https://access.redhat.com/security/cve/CVE-2026-96658); a standard 'dnf update' of the Satellite packages followed by the required service restarts and, where the erratum calls for it, the Satellite installer run will bring the template engine to the fixed level. If patching must be deferred, reduce exposure by removing template creation and rendering permissions (create_templates, edit_templates, view templates and any role granting template import/export) from all non-essential accounts, since exploitation requires PR:L template access - the trade-off is that legitimate provisioning and configuration workflows for those users will stop working until privileges are restored; additionally restrict network access to the Satellite web UI and API to trusted management networks, accepting the operational cost of tighter firewall rules for remote administrators. Regardless of patch timing, audit existing templates for suspicious appended method calls or unexpected Ruby evaluation, rotate credentials for any low-privilege accounts that could have been used, and review Foreman/Satellite logs for anomalous template renders. No public exploit code was identified at time of analysis, so aggressive emergency containment is not warranted, but the patch should be scheduled on a normal priority cycle given the total technical impact.
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
Foreman is the open-source lifecycle and configuration management layer beneath Red Hat Satellite, and it renders administrator-authored templates through the Ruby 'safemode' sandbox - a mechanism that evaluates ERB with a strict allowlist of permitted methods so that template authors cannot invoke arbitrary Ruby or shell commands. This is a CWE-94 (Improper Control of Generation of Code / code injection) flaw in how safemode handles delegated methods: by manipulating delegation, an authenticated low-privilege user can chain method calls that cause new, unauthorized functions to be registered on the sandbox's permitted-execution list, after which the template engine will happily evaluate attacker-supplied code. Because the sandbox is the sole boundary between 'template author' and 'host shell', breaking it converts a limited content-management role into full code execution in the context of the Foreman/Satellite application user. The assessed vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects that any account able to create or render templates is sufficient, with total loss of confidentiality, integrity and availability on the hosting server; the impact is scoped to the Satellite appliance itself (S:U), and exploitation requires deliberate template crafting rather than being automatable per SSVC.
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:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable web UI (AV:N), reliable sandbox bypass (AC:L), requires a low-privilege authenticated account with template access (PR:L), no interaction (UI:N); RCE on host yields total C/I/A impact.
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
A flaw was found in Foreman. An authenticated attacker with low-level permissions can achieve remote code execution (RCE) by bypassing the safemode sandbox within the templating engine. Due to improper handling of delegated methods, an attacker can append unauthorized functions to the allowed execution list, enabling them to run arbitrary commands on the hosting server.
Executive ViewAI
Red Hat Satellite 6.19 for RHEL 9 contains a high-severity remote code execution flaw in Foreman’s safemode templating engine that could let a low-privileged template user run arbitrary commands on the Satellite server. Because Satellite is a central management and provisioning system, compromise could disrupt patching, configuration management, and server lifecycle operations across the estate. No public exploit was identified at time of analysis, but leadership should prioritize remediation given the server’s reachable web UI and high CVSS score.
Apply vendor patch.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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
Foreman since version 1.5 is vulnerable to an incorrect authorization check due to which users with user management perm
EUVD-2026-90921
GHSA-g2wg-rx2f-4j5r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB