CVE-2026-12541

Foreman: command injection in foreman-rake database tasks

Published Oct 1, 2026 CVSS 3.1 · 8.2 High EPSS 1.2% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
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
Type Values Removed Values Added
First Time appeared Theforeman
Theforeman foreman
Vendors & Products Theforeman
Theforeman foreman
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
Type Values Removed Values Added
Metrics ssvc

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

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

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 2, 2026, 6:01 PM
Reserved
Jun 17, 2026, 5:41 PM
Status
Analyzed
Published
Oct 1, 2026, 5:17 PM
Modified
Oct 8, 2026, 1:16 PM
Severity
Important
Public date
Oct 1, 2026, 12:20 PM