CVE-2026-44266

Elo: Remote Code Execution in Elo Ruby backend via unescaped `#{...}` interpolation in emitted string literals and subtype-constraint labels

Published Nov 3, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, the Ruby backend in src/compilers/ruby.ts embeds attacker-controlled text in Ruby double-quoted strings without escaping #, so Ruby interpolation forms in the string-literal emitter or the labelled subtype-constraint branch become executable Ruby. The affected entry points include the /try playground with the Ruby target, bin/eloc -t ruby -x, and defaultFormats.elo.parse() followed by Ruby emission. A failing labelled subtype constraint evaluates its message, while an ordinary string literal is evaluated when the compiled Ruby runs, allowing Ruby code and shell command execution through backticks. JavaScript, Python, and SQL emission are not affected by this Ruby-specific path. This issue is fixed in version 1.0.1.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch by upgrading elo to version 1.0.1 or later to remove the unsafe string interpolation logic
  • If an upgrade is not yet possible, disable the Ruby target in Elo or restrict usage of the /try playground and bin/eloc commands to trusted users only
  • Validate or escape user‑supplied Elo expressions before compilation, ensuring that any # characters within double‑quoted strings are properly escaped to prevent interpolation
  • Prefer alternatives such as JavaScript, Python, or SQL emission paths which are unaffected by this issue
  • Implement additional monitoring to detect unexpected Ruby execution patterns during runtime

Generated by OpenCVE AI on November 3, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7w38-ggh5-v542 Elo Ruby backend has Remote Code Execution via unescaped `#{...}` interpolation in emitted string literals and subtype-constraint labels
History
Type Values Removed Values Added
First Time appeared Enspirit
Enspirit elo
Vendors & Products Enspirit
Enspirit elo
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, the Ruby backend in src/compilers/ruby.ts embeds attacker-controlled text in Ruby double-quoted strings without escaping #, so Ruby interpolation forms in the string-literal emitter or the labelled subtype-constraint branch become executable Ruby. The affected entry points include the /try playground with the Ruby target, bin/eloc -t ruby -x, and defaultFormats.elo.parse() followed by Ruby emission. A failing labelled subtype constraint evaluates its message, while an ordinary string literal is evaluated when the compiled Ruby runs, allowing Ruby code and shell command execution through backticks. JavaScript, Python, and SQL emission are not affected by this Ruby-specific path. This issue is fixed in version 1.0.1.
Title Elo: Remote Code Execution in Elo Ruby backend via unescaped `#{...}` interpolation in emitted string literals and subtype-constraint labels
Weaknesses CWE-116
CWE-1336
CWE-94
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 7:39 PM
Reserved
May 5, 2026, 4:33 PM
Status
Deferred
Published
Nov 3, 2026, 6:18 PM
Modified
Nov 12, 2026, 10:18 PM