RubySec

Providing security resources for the Ruby community

CVE-2026-12545 (hammer_cli): hammer_cli - Insecure interpolation of the $EDITOR environment variable

hammer_cli - Insecure interpolation of the $EDITOR environment variable

Published: October 01, 2026

SECURITY IDENTIFIERS

GEM

hammer_cli

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