Skip to main content

Hammer CLI EUVDEUVD-2026-90968

| CVE-2026-12545 MEDIUM
OS Command Injection (CWE-78)
2026-10-01 redhat GHSA-q4vv-h3wg-pwgx
6.7
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local authenticated shell
  2. Delivery
    Set malicious $EDITOR with shell metacharacters
  3. Exploit
    Invoke Hammer CLI editor action
  4. Execution
    system() spawns /bin/sh parsing payload
  5. Impact
    Arbitrary command execution in process context

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 that the attacker already hold a valid local account on the Satellite host (PR:L) and be able to control the $EDITOR environment variable, then trigger a Hammer CLI operation that opens an external editor (UI:R) - that editor-launch code path interpolating $EDITOR into Ruby's system() is the exact prerequisite. Limiting factors: the AV:L vector rules out remote/network exploitation, AC:H reflects the non-trivial setup and timing needed, valid authentication is required, and the injected command executes in the context of the invoking user/process rather than inherently escalating privileges. Internet-facing or unauthenticated exploitation is not possible.

Impact

This is a moderate, not top-tier, priority. The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:R) describes a local, authenticated, high-complexity attack that also requires user interaction, which strongly bounds real-world risk despite the high C:H/I:H/A:H impact and the resulting 6.7 (Medium) base score. Exploitation status is 'no public exploit identified at time of analysis' - the Red Hat advisory (RHSA-2026:74503) and Bugzilla report provide no POC and the CVE is not in CISA KEV. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified; given the local/authenticated/UI-gated profile, mass or automated exploitation is unlikely. There is no SSVC decision data in the input to cross-reference. In short, the signals are internally consistent - a genuine command-injection weakness (CWE-78) but one gated behind local access, valid credentials, high attack complexity, and user interaction, placing it well below internet-facing unauthenticated RCEs in urgency.

Exploit ScenarioDerived

A low-privileged but authenticated local user on a Red Hat Satellite host sets the $EDITOR environment variable to a value containing shell metacharacters (e.g. 'vi; malicious_command'), then invokes a Hammer CLI action that opens an editor. Because the value is interpolated into a single string passed to Ruby's system(), /bin/sh parses the metacharacters and executes the injected command. No public exploit code was identified, but the technique is trivial once local authenticated access exists, consistent with AV:L/AC:H/PR:L/UI:R.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 01, 2026

Command injection in Red Hat Satellite's Hammer CLI (rubygem-hammer_cli) allows a local authenticated user to run arbitrary shell commands by controlling the $EDITOR environment variable, which the application interpolates into a single-string Ruby system() call that is then interpreted by /bin/sh. The flaw affects Red Hat Satellite 6 and Satellite 6.19 for RHEL 9, and exploitation requires an attacker to already hold a valid local account, be able to set $EDITOR, and trigger a CLI operation that launches an external editor (such as editing a resource), meaning remote or unauthenticated exploitation is not possible. Public exploit code and confirmed active exploitation are not indicated in the available intelligence, and Red Hat has published an erratum (RHSA-2026:74503) to address the issue.

RemediationAI

Apply the Red Hat erratum RHSA-2026:74503 (https://access.redhat.com/errata/RHSA-2026:74503) to update the affected rubygem-hammer_cli and Satellite packages to the patched build. Until the update can be deployed, reduce exposure by ensuring only trusted administrators have local accounts on the Satellite host (the vector requires PR:L and control of $EDITOR), and by setting a fixed, non-attacker-controlled $EDITOR value such as /usr/bin/vi through system-wide profile or sudoers defaults so users cannot inject shell metacharacters - with the trade-off that this restricts users' editor preference. Avoid invoking Hammer CLI editor-opening operations in any environment where an untrusted party controls environment variables, since the injected command executes only with the privileges of the invoking user and does not inherently escalate privileges. As the flaw cannot be reached remotely or without valid credentials, network-level controls are not a meaningful substitute for the vendor patch.

Affected VersionsENISA

Red Hat Satellite 6.19 for RHEL 9 patch: 0:3.18.0-2.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 from Ruby's system() behavior: when system() is passed a single string rather than an argument array, Ruby hands the string to /bin/sh, which performs shell metacharacter interpretation (;, |, &, etc.). Hammer CLI and its embedded Railties (Ruby on Rails) component read the $EDITOR environment variable and interpolate it directly into that single-string system() call when spawning an external editor. An attacker who can influence $EDITOR can therefore append or embed shell metacharacters and commands that execute in the context of the invoking user/process. The affected CPEs identify Red Hat Satellite 6 and Red Hat Satellite 6.19 for RHEL 9 as the shipping products, with the vulnerable rubygem-hammer_cli library as the underlying component.

Know when Red Hat Satellite 6 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 6.7 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

A local authenticated user must control $EDITOR and trigger an editor action, giving AV:L/PR:L/UI:R with AC:H; command injection yields full host C/I/A with scope unchanged.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.7 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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., ;, |, &).

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
enterprise RHEL management platform, common but not universally deployed
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
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-2026-114406 MEDIUM POC
6.8 Oct 21

The system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe

CVE-2026-107360 CRITICAL
9.6 Nov 12

Compound assignment expressions inside rubygem-safemode's sandbox are evaluated without routing the underlying method ca

CVE-2026-12701 CRITICAL
9.0 Jul 20

Arbitrary file write in pulpcore's FilesystemExport feature allows an authenticated administrator to escape the intended

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-89091 HIGH
8.8 Oct 08

Symlink-following file overwrite on the Ansible control node is possible in ansible-core when a user runs `ansible-galax

CVE-2026-86322 HIGH
8.8 Nov 12

An authenticated authorization bypass in Foreman's API (shipped in Red Hat Satellite 6) lets a user who holds only the c

CVE-2026-5136 HIGH
8.8 Jul 01

Privilege escalation in Foreman (the engine behind Red Hat Satellite 6) lets an authenticated user holding usergroup-man

CVE-2026-1961 HIGH
8.8 Mar 26

Command injection in Foreman's WebSocket proxy, as shipped in Red Hat Satellite 6, allows a malicious compute-resource p

CVE-2026-12541 HIGH
8.2 Oct 01

OS command injection in Foreman's foreman-rake db:dump and db:import_dump tasks lets an attacker who already holds permi

CVE-2026-12540 HIGH
8.2 Oct 01

Command injection in the Foreman foreman-rake errors:fetch_log task shipped with Red Hat Satellite 6 allows a local user

CVE-2026-84218 HIGH
8.1 Sep 01

Jolokia's JSR-160 proxy in multiple Red Hat middleware products allows network-accessible unauthenticated attackers (per

CVE-2026-130644 HIGH
8.1 Nov 18

Path traversal in ansible-core's `ansible-galaxy collection install` command allows an attacker-supplied collection arti

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy