Command Injection in Hammer CLI via $EDITOR Interpolation
CVE-2026-12545 Published on October 1, 2026
Rubygem-hammer_cli: command injection via insecure editor invocation
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., ;, |, &).
Vulnerability Analysis
CVE-2026-12545 can be exploited with local system access, requires user interaction and a small amount of user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 106 days later.
Weakness Type
What is a Shell injection Vulnerability?
The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CVE-2026-12545 has been classified to as a Shell injection vulnerability or weakness.
Products Associated with CVE-2026-12545
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Satellite 6.19 for RHEL 9:- Version 0:3.18.0-2.el9sat and below * is unaffected.