All rules →
Rules / Ruby
SHIELD-RUBY-005

Command injection via backticks or %x with interpolation

criticalRubyCWE-78CVSS 9.8

What it detects

Interpolating variables inside backticks or %x() executes attacker-controlled shell commands.

How to fix

Use Open3.capture2 with an argument array instead of backticks or %x with interpolation.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-005: Command injection via backticks or %x with interpolation — Zennoxa Shield