Description
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.
Published: 2026-10-01
Score: 8.2 High
EPSS: 1.2% Low
KEV: No
Impact: Remote Code Execution via Command Injection
Action: Patch Immediately
AI Analysis

Impact

A flaw was discovered in Foreman where the foreman‑rake db:dump and db:import_dump tasks fail to sanitize the user‑supplied destination and file arguments before passing them to a Ruby system() call. An attacker who can run foreman‑rake—such as a user with sudo or other privileged access—can append arbitrary shell commands to these parameters, causing the host to execute those commands with the privileges of the running process, potentially leading to full compromise of the machine.

Affected Systems

The vulnerability affects Red Hat Satellite 6 and Red Hat Satellite 6.19 for RHEL 9, along with related Satellite Capsule and Utils components. The affected product versions are those listed under the CNA identifiers Red Hat:Red Hat Satellite 6 and Red Hat:Red Hat Satellite 6.19 for RHEL 9. No further version granularity is supplied.

Risk and Exploitability

The CVSS score of 8.2 indicates a high level of severity. The EPSS score is 1%, and the issue is not listed in the CISA KEV catalog, so current exploitation rates are unknown. The likely attack vector is local: an attacker who can invoke foreman‑rake can craft the destination or file arguments to inject shell commands, resulting in arbitrary code execution. No public exploit has been reported, but the high severity warrants rapid remediation.

Generated by OpenCVE AI on October 2, 2026 at 14:53 UTC.

Remediation

Vendor Workaround

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.


OpenCVE Recommended Actions

  • Install the patched Red Hat Satellite packages released in RHSA‑2026:74503, which removes the command‑injection vulnerability.
  • Limit the privilege to run foreman‑rake; configure sudoers or role‑based access so only trusted administrators can execute these rake tasks.
  • If a patch is not available, disable or remove the vulnerable db:dump and db:import_dump rake tasks to prevent exploitation.

Generated by OpenCVE AI on October 2, 2026 at 14:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 08 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat enterprise Linux
CPEs cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:-:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Redhat enterprise Linux

Wed, 07 Oct 2026 07:30:00 +0000

Type Values Removed Values Added
References

Sun, 04 Oct 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Theforeman
Theforeman foreman
Vendors & Products Theforeman
Theforeman foreman

Fri, 02 Oct 2026 17:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.17::el9
cpe:/a:redhat:satellite_capsule:6.17::el9
cpe:/a:redhat:satellite_utils:6.17::el9
References

Fri, 02 Oct 2026 05:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Thu, 01 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.16::el8
cpe:/a:redhat:satellite:6.16::el9
cpe:/a:redhat:satellite:6.18::el9
cpe:/a:redhat:satellite_capsule:6.16::el8
cpe:/a:redhat:satellite_capsule:6.16::el9
cpe:/a:redhat:satellite_capsule:6.18::el9
cpe:/a:redhat:satellite_utils:6.16::el8
cpe:/a:redhat:satellite_utils:6.16::el9
cpe:/a:redhat:satellite_utils:6.18::el9
References

Thu, 01 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Foreman: command injection in foreman-rake database tasks
First Time appeared Redhat
Redhat satellite
Redhat satellite Capsule
Redhat satellite Utils
Weaknesses CWE-78
CPEs cpe:/a:redhat:satellite:6
cpe:/a:redhat:satellite:6.19::el9
cpe:/a:redhat:satellite_capsule:6.19::el9
cpe:/a:redhat:satellite_utils:6.19::el9
Vendors & Products Redhat
Redhat satellite
Redhat satellite Capsule
Redhat satellite Utils
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Satellite Satellite Capsule Satellite Utils
Theforeman Foreman
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-07T06:12:05.484Z

Reserved: 2026-06-17T17:41:21.684Z

Link: CVE-2026-12541

cve-icon Vulnrichment

Updated: 2026-10-07T06:12:05.484Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-01T17:17:20.190

Modified: 2026-10-08T13:16:22.270

Link: CVE-2026-12541

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-01T12:20:00Z

Links: CVE-2026-12541 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-04T20:58:02Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')