vetkit.ruby.command-injection.interpolation
A shell command is built from request input (command injection). An attacker can append shell metacharacters to run arbitrary commands.
Last updated:
Suite: Security
ruby
A shell command is built from request input (command injection). An attacker can append shell metacharacters to run arbitrary commands.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Pass the command and its arguments separately (system("ls", dir)) or use Open3 with an argument array.
References
Source: packages/engine/rules/sast/ruby.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.