Skip to content
← Blog · · df00tech

CVE-2026-44266: Ruby Code Injection via Unescaped Interpolation in Elo (@enspirit/elo) Code Generation

vuln-intel npm CVE-2026-44266 #checker-reject

What's Happening

CVE-2026-44266 is a critical (CVSS 9.8) remote code execution vulnerability in @enspirit/elo, the Ruby backend code generator used by the Elo platform. Elo emits Ruby source code directly from schema and model definitions, but it fails to escape Ruby's #{...} string interpolation syntax when writing user-controllable values — field names, descriptions, enum labels, and subtype-constraint strings — into the generated string literals.

Because Ruby evaluates #{...} at parse/runtime inside double-quoted strings, an attacker who can influence any of these schema-level fields can inject an expression that executes arbitrary code the moment the generated Ruby file is loaded or run. This maps to CWE-94 (code injection), CWE-116 (improper output encoding), and CWE-1336 (improper template neutralization) — the core failure is that Elo treats attacker-supplied schema text as safe literal content rather than neutralizing interpolation syntax before emitting it into Ruby source.

Who's Affected

All versions of the npm package @enspirit/elo up to and including 1.0.0 are vulnerable. No patched version has been published yet (patch date unknown as of this writing). Any environment that uses Elo to generate a Ruby backend from schema or model definitions — especially where those definitions can be influenced by less-trusted users, such as self-service schema builders or multi-tenant modeling tools — is exposed.

Exploitation Status

A public proof-of-concept exists for this vulnerability. It has not been confirmed as weaponized in the wild or added to CISA's KEV catalog, but public PoC code significantly lowers the bar for exploitation and typically precedes broader opportunistic use. Defenders running affected versions should treat this as an active risk, not a theoretical one, and prioritize detection and remediation accordingly.

How Our Detection Catches It

This detection ships across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL), covering the attack chain from the vulnerable dependency through to post-exploitation execution:

  • Vulnerable install detection — identifies environments running @enspirit/elo at or below the affected 1.0.0 version via package manifest and dependency telemetry.
  • Injection-in-generation detection — flags Elo code-generation runs where emitted Ruby output contains anomalous or unexpected #{...} interpolation patterns in string literals or subtype-constraint labels, indicating a successful injection rather than benign schema content.
  • Post-exploitation execution detection — monitors for child-process creation and shell execution spawned from the Ruby backend process immediately following a code-generation or code-load event, which is the observable signature of successful RCE once the injected interpolation is evaluated.

Together, these layers let defenders catch the vulnerability at the dependency level, at the moment of injection, and at the point of actual command execution — giving multiple independent opportunities to detect and respond before an attacker achieves persistence.

Full Detection Details

For the complete KQL, SPL, and other platform-specific queries, investigation guidance, and atomic test procedures, see the full detection page: CVE-2026-44266 on df00tech.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.