# CVE-2026-128084: sqlite3-ruby: SQL Query Truncation

Status: published. Published: 2026-11-13. Updated: 2026-11-13.

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.

## Remediation

- fix: sqlite3 (RubyGems): OSV reports a fixed version 2.10.2. Check the advisory for supported release branches. (source: OSV GHSA-4fqr-96q8-xrfx) — https://github.com/advisories/GHSA-4fqr-96q8-xrfx

## Affected products and versions

- sparklemotion / sqlite3-ruby: < 2.10.2 (affected). Source: CNA: GitHub_M
-  / sqlite3 (sqlite3): 0.0.0 (affected, RubyGems); 0.0.1 (affected, RubyGems); 0.0.2 (affected, RubyGems); 0.0.3 (affected, RubyGems); 0.0.4 (affected, RubyGems); 0.0.5 (affected, RubyGems); 0.0.6 (affected, RubyGems); 0.0.7 (affected, RubyGems); 0.0.8 (affected, RubyGems); 0.1.0 (affected, RubyGems); 0.1.1 (affected, RubyGems); 1.3.10 (affected, RubyGems); 1.3.11 (affected, RubyGems); 1.3.12 (affected, RubyGems); 1.3.13 (affected, RubyGems); 1.3.3 (affected, RubyGems); 1.3.3.beta.1 (affected, RubyGems); 1.3.4 (affected, RubyGems); 1.3.5 (affected, RubyGems); 1.3.6 (affected, RubyGems); 1.3.7 (affected, RubyGems); 1.3.8 (affected, RubyGems); 1.3.9 (affected, RubyGems); 1.4.0 (affected, RubyGems); 1.4.1 (affected, RubyGems); 1.4.2 (affected, RubyGems); 1.4.3 (affected, RubyGems); 1.4.4 (affected, RubyGems); 1.5.0 (affected, RubyGems); 1.5.0.rc1 (affected, RubyGems); 1.5.0.rc2 (affected, RubyGems); 1.5.1 (affected, RubyGems); 1.5.2 (affected, RubyGems); 1.5.3 (affected, RubyGems); 1.5.4 (affected, RubyGems); 1.6.0 (affected, RubyGems); 1.6.0.rc1 (affected, RubyGems); 1.6.0.rc2 (affected, RubyGems); 1.6.1 (affected, RubyGems); 1.6.2 (affected, RubyGems); 1.6.3 (affected, RubyGems); 1.6.4 (affected, RubyGems); 1.6.5 (affected, RubyGems); 1.6.5.rc1 (affected, RubyGems); 1.6.6 (affected, RubyGems); 1.6.7 (affected, RubyGems); 1.6.8 (affected, RubyGems); 1.6.9 (affected, RubyGems); 1.7.0 (affected, RubyGems); 1.7.1 (affected, RubyGems); 1.7.2 (affected, RubyGems); 1.7.3 (affected, RubyGems); 2.0.0 (affected, RubyGems); 2.0.1 (affected, RubyGems); 2.0.2 (affected, RubyGems); 2.0.3 (affected, RubyGems); 2.0.4 (affected, RubyGems); 2.1.0 (affected, RubyGems); 2.1.0.rc1 (affected, RubyGems); 2.1.0.rc2 (affected, RubyGems); 2.1.0.rc3 (affected, RubyGems); 2.1.1 (affected, RubyGems); 2.10.0 (affected, RubyGems); 2.10.1 (affected, RubyGems); 2.2.0 (affected, RubyGems); 2.3.0 (affected, RubyGems); 2.3.1 (affected, RubyGems); 2.4.0 (affected, RubyGems); 2.4.1 (affected, RubyGems); 2.5.0 (affected, RubyGems); 2.5.0.rc1 (affected, RubyGems); 2.6.0 (affected, RubyGems); 2.7.0 (affected, RubyGems); 2.7.1 (affected, RubyGems); 2.7.2 (affected, RubyGems); 2.7.3 (affected, RubyGems); 2.7.4 (affected, RubyGems); 2.8.0 (affected, RubyGems); 2.8.1 (affected, RubyGems); 2.9.0 (affected, RubyGems); 2.9.1 (affected, RubyGems); 2.9.2 (affected, RubyGems); 2.9.2.rc2 (affected, RubyGems); 2.9.3 (affected, RubyGems); 2.9.4 (affected, RubyGems); 2.9.5 (affected, RubyGems); 2.9.6 (affected, RubyGems); Ecosystem version events: introduced 0; fixed 2.10.2. Source: OSV GHSA-4fqr-96q8-xrfx

## Severity and prioritization

- CVSS 3.1: 4.8 (medium); CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N; source: CNA: GitHub_M

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-681

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx (CNA: GitHub_M; x_refsource_CONFIRM)

- https://github.com/sparklemotion/sqlite3-ruby/pull/762 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2 (CNA: GitHub_M; x_refsource_MISC)

- https://github.com/advisories/GHSA-4fqr-96q8-xrfx (OSV / GitHub Security Advisories; advisory)

- https://osv.dev/vulnerability/GHSA-4fqr-96q8-xrfx (OSV / GitHub Security Advisories; osv)

## Provenance

- CNA: GitHub_M: https://www.cve.org/CVERecord?id=CVE-2026-128084; retrieved 2026-11-13; source updated 2026-11-13

- OSV / GitHub Security Advisories: https://osv.dev/vulnerability/GHSA-4fqr-96q8-xrfx; retrieved 2026-11-13; source updated 2026-11-13

Revision: cbcd9b251caa49e825be6f84a96c2679bf5823cca52690c29fbdf208620d9972

Canonical: https://y2.dev/cve/CVE-2026-128084

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.