Patch Ticker
日本語日
参考 スコア待ち

Trilogy Ruby library SQL injection flaw

Web apps using Trilogy for their database can have data read or changed.

初確認
—
製品

対処法

Update Trilogy to 2.13.2 or later. If you cannot upgrade, enforce the encoding of all strings passed to Trilogy#escape and Trilogy#query.

要約

Trilogy#escape in the Trilogy Ruby library produces unsafe output for Shift_JIS, Windows-31J, Big5, GBK and GB18030 strings, allowing SQL injection. Ruby on Rails and other Rack apps using the Trilogy adapter are likely affected.

該当する条件

  • Rails or Rack app connecting to the database through the Trilogy adapter
  • Attacker can influence the encoding of a string the app escapes
  • Connection encoding set to sjis, cp932, big5, gbk or gb18030

製品別のインシデント: trilogy

2026-11-19 のインシデント一覧

解説記事を読む · github.com(新しいタブで開きます)