CVE-2026-128084 json
sqlite3-ruby: SQL Query Truncation
published 19d ago modified yesterday also GHSA-4fqr-96q8-xrfx , EUVD-2026-125713
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
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.
Patch / fix
- rubygems sqlite3 2.10.2
Is CVE-2026-128084 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-14).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | sqlite3 | <2.10.2 |
2.10.2 |
Affected products
- sparklemotion sqlite3-ruby
Classification
- Weakness
-
- CWE-681 Incorrect Conversion between Numeric Types
References
-
github.com
/sparklemotion/sqlite3-ruby/pull/762
web
-
github.com
/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649
web
-
github.com
/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx
web, advisory
-
github.com
/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/GHSA-4fqr-96q8-xrfx.yml
web
-
github.com
/sparklemotion/sqlite3-ruby
package
Sources
- CVE List CVE-2026-128084
- GitHub Advisory GHSA-4fqr-96q8-xrfx
- NVD CVE-2026-128084
- Maintainer advisory GHSA-4fqr-96q8-xrfx
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of sparklemotion/sqlite3-ruby published their own advisory on GitHub. Reviewed sources take precedence over it.