Elo脆弱性2件、任意コード実行のおそれ、修正版あり
Summary
npm版Eloに、細工した入力から任意のコードを実行されるおそれがある脆弱性が2件公表されました。Eloのソースを外部から受けて処理している組織は、1.0.1へ更新し、Ruby出力とJavaScript出力の使用有無を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
npm版Eloに、細工した入力から任意のコードを実行されるおそれがある脆弱性が2件公表されました。Eloのソースを外部から受けて処理している組織は、1.0.1へ更新し、Ruby出力とJavaScript出力の使用有無を確認してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| enspirit | elo | — | — |
| npm | @enspirit/elo |
< 1.0.1 |
1.0.1 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com