Skip to main content

Foreman CVE-2026-12541

| EUVDEUVD-2026-90918 HIGH
OS Command Injection (CWE-78)
2026-10-01 redhat GHSA-rcq3-9wpf-p347
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 restricted foreman-rake sudo access
  2. Delivery
    Append shell metacharacters to file/destination path
  3. Exploit
    Unsanitized path reaches Ruby system() call
  4. Execution
    Injected OS command executes outside sudo confinement
  5. Impact
    Escalate 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 db:dump or db:import_dump tasks - the description names a restricted sudo configuration as the enabling path. The specific injectable inputs are the destination parameter during backups and the file parameter during imports, which are concatenated into a Ruby system() call without sanitization. Limiting factors: this is LOCAL only (no network vector), it demands pre-existing delegated/privileged access to these rake tasks (PR:H), and environments where only root invokes foreman-rake and no restricted sudo delegation exists are effectively not exposed to privilege escalation. No user interaction by a victim is required.

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 foreman-rake db:dump or db:import_dump appends shell metacharacters to the destination or file path argument (e.g., a path followed by ; <command>). Because the path is passed unsanitized into a Ruby system() call, the appended command executes with the privileges of the rake task, letting the user escape their intended sudo confinement and run arbitrary OS commands. No public exploit code is identified, but the technique is trivially reproducible given the described sink.

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

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

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

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 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.

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. 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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
1.3%
Top 31% exploitable
Prevalence
Medium
enterprise RHEL management platform, common but not universally deployed
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
Medium
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.

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