sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| 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…
Read on GitHub Advisory Database
On 11/14/2026, 03:57 AM, GitHub Advisory Database published "sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger" (type: Advisory). Severity is "Medium" (medium). Related technologies: Ruby, SQLite. CVE: CVE-2026-128084.