sqlite3-ruby: SQL Query Truncation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
sqlite3 provides Ruby bindings for the SQLite3 embedded database. Prior to 2.10.2, sqlite3-ruby casts Ruby string lengths to int before passing SQL through Database#prepare, bound String or Blob values through Statement#bind_param, and String or Blob results from Ruby-defined SQL functions and aggregates through Database#create_function and Database#create_aggregate. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger can wrap the length so SQLite processes only a prefix. A truncated SQL string can drop trailing clauses such as a WHERE condition, while a truncated bound value matters only when the application validated the full value before binding it. Exploitation requires the application and server to accept and retain the unusually large attacker-controlled string. If a dropped SQL clause contained a bind placeholder, binding raises SQLite3::RangeException instead of running the query. This issue is fixed in version 2.10.2.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sparklemotion | sqlite3-ruby | before 2.10.2 | 2.10.2 | Patch available | CNA |
| — | sqlite3 (RubyGems) | before 2.10.2 | 2.10.2 | Patch available | GHSA-4fqr-96q8-xrfx |
- sqlite3-ruby Vendorsparklemotion Affected before 2.10.2 Fixed in 2.10.2 Patch available CNA
- sqlite3 (RubyGems) Vendor— Affected before 2.10.2 Fixed in 2.10.2 Patch available GHSA-4fqr-96q8-xrfx
Remediation
- Fix · CNA sqlite3-ruby (sparklemotion) Fixed in 2.10.2
- Fix · GHSA-4fqr-96q8-xrfx sqlite3 (RubyGems) Fixed in 2.10.2 Advisory →
Timeline
- 2026-11-13 Threatist record created from CVE-2026-128084
- 2026-11-13 Alias added: GHSA-4fqr-96q8-xrfx
- 2026-11-13 Fix available: RubyGems/[email protected] · GHSA-4fqr-96q8-xrfx
- 2026-11-13 CVSS score added · GHSA-4fqr-96q8-xrfx
- 2026-11-13 Weakness changed · GHSA-4fqr-96q8-xrfx
- 2026-11-13 6 new references · GHSA-4fqr-96q8-xrfx
References
Other 6
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx
- https://github.com/sparklemotion/sqlite3-ruby/pull/762
- https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/GHSA-4fqr-96q8-xrfx.yml
- https://github.com/sparklemotion/sqlite3-ruby
More sparklemotion vulnerabilities
- TI-2022-11724 Improper Handling of Unexpected Data Type in Nokogiri CVSS 3.1HIGH 8.2
- TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
- TI-2026-69678 Mechanize leaks credential headers to other hosts after redirects CVSS 3.1MEDIUM 6.8
- TI-2025-05895 sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
- TI-2025-05891 sparklemotion nokogiri hashmap.c hashmap_set_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
- TI-2019-03885 OS command injection in Nokogiri CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-128084 · CVE Program
- CVE-2026-128084 · NVD
- FIRST EPSS
- GHSA-4fqr-96q8-xrfx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences