{"id":"CVE-2026-128084","published":"2026-11-13T18:47:22Z","modified":"2026-11-18T13:05:55Z","title":"sqlite3-ruby: SQL Query Truncation","vendor":"sparklemotion","product":"sqlite3-ruby","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00314,"percentile":0.24993,"provenance":"source"},"cwes":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"}],"references":[{"url":"https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/pull/762","tags":["x_refsource_MISC"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649","tags":["x_refsource_MISC"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":5.0},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"sparklemotion","affectedVersions":[{"vendor":"sparklemotion","product":"sqlite3-ruby","versions":["< 2.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-18T13:05:16.351676Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"sqlite3","vulnerableRanges":["<2.10.2"],"patched":["2.10.2"],"from":["GHSA-4fqr-96q8-xrfx"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-125713","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sparklemotion-sqlite3-ruby-cve-2026-54619","parents":[{"from":"CVE-2026-54619","to":"CVE-2026-128084","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:sqlite3","fromFixed":"2.9.5","toFixed":"2.10.2","daysApart":108},{"kind":"same-code","provenance":"machine","files":["ext/sqlite3/database.c"],"commits":["https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649","https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-54619","published":"2026-07-28","fixed":"2.9.5","kev":false},{"cve":"CVE-2026-54620","published":"2026-07-28","fixed":"2.9.5","kev":false},{"cve":"CVE-2026-128084","published":"2026-11-13","fixed":"2.10.2","kev":false}],"package":"RubyGems:sqlite3"}}