Description
A flaw was found in rubygem-hammer_cli. A command injection vulnerability exists in Hammer CLI and the Railties (Ruby on Rails) component distributed with Satellite due to the insecure interpolation of the $EDITOR environment variable into the Ruby system() method. By passing a single interpolated string to system(), the application invokes a system shell (/bin/sh) that interprets shell metacharacters (e.g., ;, |, &).
Published: 2026-10-01
Score: 6.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

A flaw in the rubygem-hammer_cli package enables an attacker to inject arbitrary shell commands through the $EDITOR environment variable. The Ruby application passes this value directly into a system() call, which interprets shell metacharacters and executes the constructed command string. This reflects the common Command Injection weakness (CWE‑78) and could allow an attacker to run commands with the privileges of the Satellite service, compromising confidentiality, integrity, and availability.

Affected Systems

The vulnerability applies to Red Hat Satellite 6 and the 6.19 release for RHEL 9. It is present in the Hammer CLI component and the accompanying Rails (Railties) libraries bundled with these Satellite installations. The affected products are enumerated by the vendor as "Red Hat:Red Hat Satellite 6" and "Red Hat:Red Hat Satellite 6.19 for RHEL 9". No specific minor release information is disclosed beyond these identifiers; users of any Satellite 6 or 6.19 installation should verify their installed version of rubygem‑hammer_cli against the Red Hat erratum RHSA‑2026:74503.

Risk and Exploitability

The CVSS score of 6.7 classifies the vulnerability as moderate to high risk. EPSS information is not available, indicating that the current exploitation probability is uncertain. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector requires an attacker to influence the $EDITOR environment variable used by the Satellite service, which may be feasible if the attacker can interfere with the execution environment or supply configuration data. If exploited, the attacker could execute arbitrary commands on the Satellite host with escalating privileges, potentially taking full control of the asset.

Generated by OpenCVE AI on October 1, 2026 at 18:59 UTC.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.


OpenCVE Recommended Actions

  • Apply Red Hat erratum RHSA‑2026:74503 to update rubygem‑hammer_cli and related Satellite components.
  • Ensure the $EDITOR environment variable is set only to a trusted editor and not supplied from untrusted sources.
  • When the patch is not yet available, configure the Satellite service to avoid using system() with interpolated environment variables, or restrict the command invocation to a safe, non‑shell routine.

Generated by OpenCVE AI on October 1, 2026 at 18:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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 hammer Cli
Vendors & Products Theforeman
Theforeman hammer Cli

Fri, 02 Oct 2026 18: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 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 02 Oct 2026 00:00: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 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description A flaw was found in rubygem-hammer_cli. A command injection vulnerability exists in Hammer CLI and the Railties (Ruby on Rails) component distributed with Satellite due to the insecure interpolation of the $EDITOR environment variable into the Ruby system() method. By passing a single interpolated string to system(), the application invokes a system shell (/bin/sh) that interprets shell metacharacters (e.g., ;, |, &).
Title Rubygem-hammer_cli: command injection via insecure editor invocation
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': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Satellite Satellite Capsule Satellite Utils
Theforeman Hammer Cli
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

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

Reserved: 2026-06-17T17:42:24.665Z

Link: CVE-2026-12545

cve-icon Vulnrichment

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

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-01T18:17:15.700

Modified: 2026-10-07T07:17:00.897

Link: CVE-2026-12545

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-12545 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-04T20:57:56Z

Weaknesses
  • CWE-78

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