Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. sqlite3
  4. ›
  5. CVE-2026-128084

CVE-2026-128084: sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger

November 13, 2026

sqlite3-ruby cast Ruby string lengths (long) to int before passing them to SQLite. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger had its length wrap, so SQLite saw only the first length mod 2^32 bytes. An attacker who controls the length of a SQL string could truncate the query, for example dropping a trailing WHERE clause. The affected paths are:

  • the SQL passed to Database#prepare, #execute, and related methods
  • String and Blob values passed to Statement#bind_param and related methods
  • String and Blob values returned from SQL functions and aggregates defined in Ruby (Database#create_function, #create_aggregate, and related methods)

sqlite3 v2.10.2 raises RangeError when any of these strings is longer than INT_MAX bytes.

References

  • github.com/advisories/GHSA-4fqr-96q8-xrfx
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/GHSA-4fqr-96q8-xrfx.yml
  • github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649
  • github.com/sparklemotion/sqlite3-ruby/pull/762
  • github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2
  • github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx
  • nvd.nist.gov/vuln/detail/CVE-2026-128084

Code Behaviors & Features

Detect and mitigate CVE-2026-128084 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.10.2

Fixed versions

  • 2.10.2

Solution

Upgrade to version 2.10.2 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-681: Incorrect Conversion between Numeric Types

Source file

gem/sqlite3/CVE-2026-128084.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 14 Nov 2026 00:18:13 +0000.