p PatchFirst

CVE-2026-128084

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

CVSS 4.8 · Medium · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

gem list --exact sqlite3
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-sqlite3"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system · ruby

Affected products and versions

  • sqlite3-ruby

    Versions
    • < 2.10.2: Affected

    No fix published

  • sqlite3 RubyGems

    Versions
    • 0.0.0
    • 0.0.1
    • 0.0.2
    • 0.0.3
    • 0.0.4
    • 0.0.5
    All versions (87)
    • 0.0.6
    • 0.0.7
    • 0.0.8
    • 0.1.0
    • 0.1.1
    • 1.3.10
    • 1.3.11
    • 1.3.12
    • 1.3.13
    • 1.3.3
    • 1.3.3.beta.1
    • 1.3.4
    • 1.3.5
    • 1.3.6
    • 1.3.7
    • 1.3.8
    • 1.3.9
    • 1.4.0
    • 1.4.1
    • 1.4.2
    • 1.4.3
    • 1.4.4
    • 1.5.0
    • 1.5.0.rc1
    • 1.5.0.rc2
    • 1.5.1
    • 1.5.2
    • 1.5.3
    • 1.5.4
    • 1.6.0
    • 1.6.0.rc1
    • 1.6.0.rc2
    • 1.6.1
    • 1.6.2
    • 1.6.3
    • 1.6.4
    • 1.6.5
    • 1.6.5.rc1
    • 1.6.6
    • 1.6.7
    • 1.6.8
    • 1.6.9
    • 1.7.0
    • 1.7.1
    • 1.7.2
    • 1.7.3
    • 2.0.0
    • 2.0.1
    • 2.0.2
    • 2.0.3
    • 2.0.4
    • 2.1.0
    • 2.1.0.rc1
    • 2.1.0.rc2
    • 2.1.0.rc3
    • 2.1.1
    • 2.10.0
    • 2.10.1
    • 2.2.0
    • 2.3.0
    • 2.3.1
    • 2.4.0
    • 2.4.1
    • 2.5.0
    • 2.5.0.rc1
    • 2.6.0
    • 2.7.0
    • 2.7.1
    • 2.7.2
    • 2.7.3
    • 2.7.4
    • 2.8.0
    • 2.8.1
    • 2.9.0
    • 2.9.1
    • 2.9.2
    • 2.9.2.rc2
    • 2.9.3
    • 2.9.4
    • 2.9.5
    • 2.9.6
    Affected ranges
    • ECOSYSTEM: < 2.10.2

    Update to 2.10.2

  • ruby-sqlite3 Ubuntu 16.04 LTS

    Versions
    • 1.3.10-1
    • 1.3.11-1
    • 1.3.11-1build1
    • 1.3.11-2
    • 1.3.11-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 18.04 LTS

    Versions
    • 1.3.13-1
    • 1.3.13-1build1
    • 1.3.13-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 20.04 LTS

    Versions
    • 1.3.13-1build2
    • 1.4.2-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 22.04 LTS

    Versions
    • 1.4.2-3
    • 1.4.2-3build1
    • 1.4.2-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 24.04 LTS

    Versions
    • 1.4.2-4build2
    • 1.4.2-4build3
    • 1.4.2-4build4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 26.10

    Versions
    • 1.7.3-2
    • 2.9.5-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 26.04 LTS

    Versions
    • 1.7.3-1
    • 1.7.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →