Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local authenticated shell
-
DeliverySet malicious $EDITOR with shell metacharacters
-
ExploitInvoke Hammer CLI editor action
-
Executionsystem() spawns /bin/sh parsing payload
-
ImpactArbitrary 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Red Hat Satellite 6
View allThe system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe
Compound assignment expressions inside rubygem-safemode's sandbox are evaluated without routing the underlying method ca
Arbitrary file write in pulpcore's FilesystemExport feature allows an authenticated administrator to escape the intended
Command injection in the Red Hat Satellite job invocation API (/api/v2/job_invocations), shipped via the rubygem-foreman
Symlink-following file overwrite on the Ansible control node is possible in ansible-core when a user runs `ansible-galax
An authenticated authorization bypass in Foreman's API (shipped in Red Hat Satellite 6) lets a user who holds only the c
Privilege escalation in Foreman (the engine behind Red Hat Satellite 6) lets an authenticated user holding usergroup-man
Command injection in Foreman's WebSocket proxy, as shipped in Red Hat Satellite 6, allows a malicious compute-resource p
OS command injection in Foreman's foreman-rake db:dump and db:import_dump tasks lets an attacker who already holds permi
Command injection in the Foreman foreman-rake errors:fetch_log task shipped with Red Hat Satellite 6 allows a local user
Jolokia's JSR-160 proxy in multiple Red Hat middleware products allows network-accessible unauthenticated attackers (per
Path traversal in ansible-core's `ansible-galaxy collection install` command allows an attacker-supplied collection arti
EUVD-2026-90968
GHSA-q4vv-h3wg-pwgx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB