CVE-2026-66748: Ruby Eval Array Callbacks

Evaluating string values dynamically extracted from collections or iterators using `eval` is unsafe and exposes the application to arbitrary code execution (RCE) if user-controlled strings can be added to the collection (e.g., as callbacks or commands). Use Procs, Lambdas, or other callable constructs and invoke them via `.call` rather than storing code as s

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-66748-ruby-eval-array-callbacks --engine opengrep

Description

Evaluating string values dynamically extracted from collections or iterators using `eval` is unsafe and exposes the application to arbitrary code execution (RCE) if user-controlled strings can be added to the collection (e.g., as callbacks or commands). Use Procs, Lambdas, or other callable constructs and invoke them via `.call` rather than storing code as s