vetkit.ruby.code-injection.eval
Ruby code is evaluated from request input (code injection). An attacker can run arbitrary code in the application process.
Last updated:
Suite: Security
ruby
Ruby code is evaluated from request input (code injection). An attacker can run arbitrary code in the application process.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Avoid eval/instance_eval/class_eval with strings; use public_send with an allow-list.
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.