All rules →
Rules / Ruby
SHIELD-RUBY-008

Code injection via instance_eval or class_eval

highRubyCWE-95CVSS 8.8

What it detects

instance_eval or class_eval on dynamic input executes arbitrary code in an object or class context.

How to fix

Do not evaluate user-supplied strings; refactor to call known methods directly.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-008: Code injection via instance_eval or class_eval — Zennoxa Shield