Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain restricted foreman-rake sudo access
-
DeliveryAppend shell metacharacters to file/destination path
-
ExploitUnsanitized path reaches Ruby system() call
-
ExecutionInjected OS command executes outside sudo confinement
-
ImpactEscalate to full host control
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 | Exploitation requires the attacker to already possess permission to execute the foreman-rake |
| Impact | This is a genuine but access-gated privilege-escalation risk rather than a mass-exploitable remote threat. The CVSS 3.1 vector (AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H, base 8.2 HIGH) tells a consistent story: exploitation is LOCAL and requires HIGH privileges - specifically the pre-existing ability to invoke foreman-rake (e.g., through a restricted sudo rule). The high CIA impact with scope change (S:C) reflects that a constrained, delegated command is turned into full arbitrary OS command execution, breaking out of the intended sudo confinement. No EPSS score, SSVC decision, KEV listing, or POC is present in the provided intelligence, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The practical risk is therefore an insider or a compromised low-trust operator escalating within a Red Hat Satellite / Foreman host, not internet-facing compromise. Priority should be driven by whether restricted sudo access to foreman-rake has actually been delegated to non-root users in your environment; where only root runs these tasks, real-world risk is low. A patch is confirmed available (RHSA-2026:74503), making remediation straightforward. |
| Exploit ScenarioDerived | An operator who has been granted a restricted sudo rule permitting only |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
OS command injection in Foreman's foreman-rake db:dump and db:import_dump tasks lets an attacker who already holds permission to execute those rake tasks - for example through a restricted sudo delegation - append arbitrary shell commands to the destination (backup) or file (import) parameter, achieving command execution with the privileges of the rake process and scoring CVSS 8.2 (AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H). The bug affects Foreman as shipped in Red Hat Satellite 6.19 for RHEL 9 and the broader Red Hat Satellite 6 line, and is tracked under CVE-2026-12541. This is a genuine but access-gated privilege-escalation risk rather than a mass-exploitable remote threat: it is local-only, demands pre-existing delegated or privileged access to the rake tasks, and environments where only root invokes foreman-rake with no restricted sudo delegation are effectively not exposed; no public exploit code has been identified at time of analysis.
RemediationAI
Apply the Red Hat vendor fix for this flaw via RHSA-2026:74503 (https://access.redhat.com/errata/RHSA-2026:74503), which updates Foreman/Satellite components; patch available per vendor advisory - an exact fixed package version was not independently confirmed from the supplied data. Until patched, the decisive compensating control is to remove or tightly restrict any sudo delegation that lets non-root operators run foreman-rake db:dump or db:import_dump, as the injection is only reachable by someone who already holds that permission; the trade-off is that backup and restore workflows must then be run exclusively by root or through a trusted automation account, reducing operational flexibility but eliminating the escalation path. As a secondary measure, enforce strict allowlisting of destination and file arguments (absolute paths under approved backup directories, with a reject-list for shell metacharacters such as ; | & $ ` \n) before invoking the rake task, and avoid passing operator-controlled strings into the task directly; this is defense in depth and can break legitimate paths containing unusual characters. Because the vector is local (AV:L) with high required privileges (PR:H) and no public exploit code has been identified at time of analysis, prioritize patching Satellite 6.19 for RHEL 9 hosts and any upstream Foreman deployment with restricted sudo rules that expose these rake tasks, and review sudoers entries that grant foreman-rake access for unnecessary breadth.
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 root cause is CWE-78, improper neutralization of special elements used in an OS command, arising in two Foreman rake tasks that shell out through a Ruby system() call. In db:dump the user-supplied destination parameter (the backup target path) and in db:import_dump the user-supplied file parameter (the dump to restore) are passed unsanitized into that system() invocation, so shell metacharacters in the path are interpreted by the underlying shell instead of being treated as literal filename characters. Because system() executes through /bin/sh semantics, appended commands run with the effective privileges of the foreman-rake process, which in typical deployments is privileged (often root or a sudo-authorized administrative context). The CPE data ties the affected build to Red Hat's productized Foreman distribution: cpe:2.3:a:red_hat:red_hat_satellite_6.19_for_rhel_9 and cpe:2.3:a:red_hat:red_hat_satellite_6:*:*:*:*:*:*:*:*, i.e. Foreman components bundled inside Red Hat Satellite 6. This is a local, high-privilege (PR:H) escalation primitive, not a network-reachable injection, so its practical impact depends on how widely the db:dump/db:import_dump rake tasks are delegated to non-root operators.
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 existing delegated rights to run foreman-rake so PR:H and AV:L; trivial metacharacter injection gives AC:L, and escaping sudo confinement to full OS execution justifies S:C with C/I/A all High.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
A flaw was found in Foreman. OS command injection vulnerabilities exist in the foreman-rake db:dump and db:import_dump tasks. The application fails to properly sanitize user-supplied input in the destination parameter (during backups) and the file parameter (during imports) before passing them to a Ruby system() call for execution. An attacker with permissions to execute foreman-rake (e.g., via a restricted sudo configuration) can append malicious shell commands to the provided file paths.
Executive ViewAI
Red Hat Satellite 6.19 for RHEL 9, and the broader Satellite 6 line, ship a version of Foreman in which the foreman-rake db:dump and db:import_dump tasks can be manipulated by an actor who already holds delegated permission to run them, causing arbitrary shell commands to execute with the rake process's privileges. This is a contained, access-gated privilege-escalation issue affecting platform administrators and automation accounts rather than a broad remote threat to the wider estate. Leadership should care because Satellite is the control plane for configuration management and host lifecycle across managed Red Hat infrastructure, so an escalation there can be leveraged into broad control over the systems it governs.
No vendor-released patch identified at time of analysis; unauthenticated exploitation is not possible, but the CVSS vector (PR:H) shows the attacker must already hold high privileges, specifically delegated permission to execute the foreman-rake db:dump and db:import_dump tasks. Interim mitigations: remove or narrow restricted sudo delegations and any other grants that let non-root accounts run these rake tasks; restrict foreman-rake to root invocation only; run rake tasks from a dedicated least-privilege service account; validate and harden all input feeding the destination (backup) and file (import) parameters; and audit and alert on foreman-rake command lines to catch injected shell content. Confirmed actively exploited: no public exploit identified at time of analysis.
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.
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-90918
GHSA-rcq3-9wpf-p347
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB