Read the docs

sqlite3-ruby: SQL Query Truncation

Priority LOW 22CWE-681Published · Updated

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

EPSS 0.00314 24th percentileScored 2026-11-16
Fix Fixed sqlite3-ruby (sparklemotion): 2.10.2sqlite3 (RubyGems): 2.10.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
sparklemotionsqlite3-rubybefore 2.10.22.10.2Patch availableCNA
—sqlite3 (RubyGems)before 2.10.22.10.2Patch availableGHSA-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

  1. 2026-11-13 Threatist record created from CVE-2026-128084
  2. 2026-11-13 Alias added: GHSA-4fqr-96q8-xrfx
  3. 2026-11-13 Fix available: RubyGems/[email protected] · GHSA-4fqr-96q8-xrfx
  4. 2026-11-13 CVSS score added · GHSA-4fqr-96q8-xrfx
  5. 2026-11-13 Weakness changed · GHSA-4fqr-96q8-xrfx
  6. 2026-11-13 6 new references · GHSA-4fqr-96q8-xrfx

References

  • 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
See all 35 →

Sources