## sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger

- 種別: advisory
- 重大度: medium
- 関連技術: ruby, sqlite
- CVE: CVE-2026-128084
- 公開日時: 2026-11-13T18:57:58.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-4fqr-96q8-xrfx)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-4fqr-96q8-xrfx

影響: rubygems:sqlite3 <= 2.10.1 → 2.10.2
sqlite3-ruby cast Ruby string lengths (long) to int before passing them to SQLite. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger had its length wrap, so SQLite saw only the first length mod 2^32 bytes. An attacker who controls the length of a SQL string could truncate the query, for example dropping a trailing WHERE clause. The affected paths are: - the SQL passed to Database#prepare, #execute, and related methods - String and Blob values passed to Statement#bind_param and relat…