All rules →
Rules / Ruby
SHIELD-RUBY-006

Command injection via Open3 or spawn with variable

highRubyCWE-78CVSS 8.8

What it detects

Passing a single interpolated string to Open3 or Kernel.spawn invokes a shell and permits injection.

How to fix

Provide the command and each argument as distinct array elements to Open3 or spawn.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-006: Command injection via Open3 or spawn with variable — Zennoxa Shield