hammer_cli - Insecure interpolation of the $EDITOR environment variable
Published: October 01, 2026
SECURITY IDENTIFIERS
- CVE: CVE-2026-12545 (NVD)
- GHSA: GHSA-q4vv-h3wg-pwgx
GEM
SEVERITY
CVSS v3.x: 6.7 (Medium)
PATCHED VERSIONS
~> 3.19.1
>= 5.0.1
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., ;, |, &).
RELATED
- https://nvd.nist.gov/vuln/detail/CVE-2026-12545
- https://rubygems.org/gems/hammer_cli/versions/5.0.1
- https://github.com/theforeman/hammer-cli/compare/5.0.0...5.0.1
- https://rubygems.org/gems/hammer_cli/versions/3.19.1
- https://github.com/theforeman/hammer-cli/compare/3.19.0...3.19.1
- https://github.com/theforeman/hammer-cli/pull/407/changes/9d602cd3cecd1e3711037fc4334c3c7d23dbd46b
- https://github.com/theforeman/hammer-cli/commit/a968f58aad9d79bfcd2b107c570f7dcabee033b6
- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/security/cve/CVE-2026-12545
- https://bugzilla.redhat.com/show_bug.cgi?id=2489993
- https://github.com/advisories/GHSA-q4vv-h3wg-pwgx
