CVE-2026-12545

Rubygem-hammer_cli: command injection via insecure editor invocation

Published Oct 1, 2026 CVSS 3.1 · 6.7 Medium EPSS < 1% KEV · Not listed
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., ;, |, &).

Analysis

AI-generated

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

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

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

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

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:49 PM
Reserved
Jun 17, 2026, 5:42 PM
Status
Awaiting Analysis
Published
Oct 1, 2026, 6:17 PM
Modified
Oct 7, 2026, 7:17 AM
Severity
Moderate
Public date
Oct 1, 2026, 12:20 PM