cve.bz

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

4.8 mediumFix available

Medium (4.8) in sparklemotion sqlite3-ruby. Fixed in sqlite3 2.10.2.

On this page
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.

Severity

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
CWE
CWE-681 Incorrect Conversion between Numeric Types
Published
Assigned by
GitHub_M (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-128084 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-128084?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-128084?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-128084 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-128084

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-128084](https://cve.bz/cve/badge/CVE-2026-128084.svg)](https://cve.bz/cve/CVE-2026-128084)

HTML:

<a href="https://cve.bz/cve/CVE-2026-128084"><img src="https://cve.bz/cve/badge/CVE-2026-128084.svg" alt="CVE-2026-128084"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
sparklemotion sqlite3-ruby< 2.10.2

Fix and patched versions

  • sqlite3 (RubyGems): fixed in 2.10.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4fqr-96q8-xrfxRubyGemssqlite3<2.10.22.10.2

References

Check your stackJSON