All rules →
Rules / Ruby
SHIELD-RUBY-004

Command injection via system or exec with interpolation

criticalRubyCWE-78CVSS 9.8

What it detects

Passing an interpolated string to system or exec runs it through a shell, enabling command injection.

How to fix

Pass command and arguments as separate array elements to avoid shell interpretation.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-004: Command injection via system or exec with interpolation — Zennoxa Shield