Technical impact
Elo embeds user‑controlled text directly into double‑quoted Ruby strings without escaping the # character. When the Ruby backend emits strings containing a c‑shaped interpolation such as #{…}, those segments are interpreted as Ruby code during execution. An attacker can place arbitrary Ruby expressions, including backticks to invoke shell commands, inside an Elo expression that is later compiled and run. This flaw affects the /try playground, the eloc binary with the ruby target, and calls to defaultFormats.elo.parse() followed by Ruby emission, giving an attacker the ability to read, modify, or delete data and execute system commands. The vulnerability does not impact the JavaScript, Python, or SQL emission paths.
Affected Systems
The vulnerability exists in the Elo expression language implementation by enspirit:elo. Versions prior to the 1.0.1 release contain the unsafe string emission logic. No later releases include this flaw, as it was fixed in version 1.0.1.
Risk and Exploitability
The CVSS score of 9.8 classifies this flaw as Critical, indicating a high level of severity for confidentiality, integrity, and availability. The EPSS score is currently unavailable, and Elo is not listed in the CISA KEV catalog, but the lack of mitigation availability combined with the ability to execute arbitrary code makes exploitation both feasible and potentially frequent in environments where untrusted input is processed by the Ruby target. The likely attack vector involves submitting crafted Elo expressions through the playground or programmatic compilation interfaces, which are then executed by the backend Ruby engine.
Github GHSA