Skip to main content

CVE-2026-128084 — Vulnerability in sqlite3 — CVE Details

MEDIUM

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

Published November 13, 2026Updated November 13, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.33%). Schedule for your next planned update.

Does your project use an affected sqlite3 version?

Paste your Gemfile.lock to check it for CVE-2026-128084 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

Summary

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.

Severity

The sqlite3-ruby maintainers have evaluated this as medium severity (CVSS 4.8). Exploitation requires an attacker to get at least 4 GiB into a single SQL string or bound value. Most deployments reject a request body that large before the application sees it, and the server must hold several copies of the string in memory.

A truncated bound value is only a prefix of the attacker's input, so the bind paths matter only where the application validated the full value. A truncated SQL string is more serious: when the attacker's input is inlined into the SQL, the clauses that follow it are dropped. If a dropped clause contained a bind placeholder, binding raises SQLite3::RangeException instead of running the query.

Mitigation

Upgrade to sqlite3 v2.10.2 or later.

As a workaround for earlier versions, reject SQL strings and bound values of 4 GiB or larger before passing them to sqlite3-ruby, or limit request body size well below 4 GiB.

Credit

This issue was responsibly reported by Luke Jahnke from elttam.

Advisory Timeline

  • First published November 13, 2026 (13 days ago).
  • Last revised November 13, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update sqlite3 to 2.10.2 or later
gem install sqlite3 -v 2.10.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
sqlite3 RubyGems · Affected: 0.0.0, 0.0.1, 0.0.2, 0.0.3 (+83 more)2.10.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 4.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

Frequently Asked Questions

What is CVE-2026-128084?
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 4.8/10).
How do I check if my project is affected by CVE-2026-128084?
CVE-2026-128084 affects sqlite3. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-128084 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
4.8

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.33%
EPSS percentile: 18.1

This is a below-median EPSS score — only 18.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-4fqr-96q8-xrfx

Related CVEs

  • CVE-2026-128068
    MEDIUM

    rails-html-sanitizer: Possible regular expression denial of service with certain configurations

  • CVE-2026-115472
    MEDIUM

    Doorkeeper: When using public clients, any client can revoke any access token

  • GHSA-mwm8-39rw-8826
    MEDIUM

    sqlite3-ruby: Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array

  • CVE-2026-54619
    LOW

    sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity

  • CVE-2026-54620
    LOW

    sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock