Skip to main content

sqlite3-ruby EUVDEUVD-2026-125713

| CVE-2026-128084 MEDIUM
Incorrect Conversion between Numeric Types (CWE-681)
2026-11-13 GitHub_M GHSA-4fqr-96q8-xrfx
4.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit 4GiB attacker-controlled string
  2. Delivery
    Int cast wraps string length
  3. Exploit
    SQLite processes only truncated prefix
  4. Execution
    Trailing WHERE clause silently dropped
  5. Impact
    Query returns unintended rows

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Requires a 64-bit platform and an attacker who can place a single string of 4 GiB (2^32 bytes) or larger into either the SQL text sent to Database#prepare/#execute, a String/Blob bound via Statement#bind_param, or a String/Blob returned from a Ruby-defined function/aggregate (create_function/create_aggregate); the application and server must accept and retain this oversized input, holding several copies in memory. The serious SQL-truncation case additionally requires the attacker's input to be inlined into the SQL rather than parameterized, so a trailing clause gets dropped; if a dropped clause contained a bind placeholder, binding raises SQLite3::RangeException and the query does not run. The bound-value truncation case only matters where the application validated the full value before binding. Principal limiting factors: most deployments reject request bodies well below 4 GiB, the memory cost of retaining multiple 4 GiB copies, the 64-bit-only wrap condition, and the requirement for unparameterized SQL construction.

Impact

This is a genuine-but-low-priority medium issue (maintainer-assigned CVSS 4.8, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) whose network, unauthenticated vector is heavily offset by AC:H: successful exploitation requires an attacker to force a single SQL string or bound value of at least 4 GiB (2^32 bytes) into the application, and the server must accept and retain several in-memory copies of it. There is no public exploit identified at time of analysis, no CISA KEV listing, and no EPSS or SSVC data supplied in the input, so the only priority signal is the vuln.today 'this_month' decision label - consistent with a real-but-not-urgent issue rather than an emergency. The practical exploitability barrier is the dominant factor: as the vendor advisory notes, most deployments reject a multi-gigabyte request body long before the application layer sees it, so real-world risk is low and far below what the AV:N/PR:N metrics alone might suggest. Note the signals are not conflicting so much as sparse: EPSS, SSVC and any exploitation telemetry are simply absent from the provided data and should not be treated as either high or zero.

Exploit ScenarioDerived

On a 64-bit host, an attacker supplies a ≥4 GiB attacker-controlled string that the Ruby application inlines into a SQL statement passed through sqlite3-ruby's Database#prepare/#execute; the Ruby length is cast to int and wraps, so SQLite processes only the first (length mod 2^32) bytes and silently drops the trailing clauses, for example a WHERE condition, causing the query to match more rows than intended. No public exploit code is available, and the attack is impractical in most environments because the server must accept and hold multiple copies of the oversized string in memory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Integer truncation in sqlite3-ruby 2.10.1 and earlier causes SQLite to process only a prefix of an oversized SQL string or bound value on 64-bit platforms, so trailing clauses such as a WHERE condition can be dropped when attacker input is inlined into SQL. The CVSS vector describes a remote, unauthenticated issue, but exploitation is heavily constrained: the attacker must get a single string of at least 4 GiB accepted and retained by the application and server, with several in-memory copies. No public exploit was identified at time of analysis, and the maintainers rate the issue medium severity (CVSS 4.8); bound-value truncation matters mainly where the application has already validated the full value.

RemediationAI

Vendor-released patch: sqlite3-ruby 2.10.2 and later; upgrade the gem and redeploy. The upstream fix raises RangeError when a SQL string, bound String or Blob value, or String or Blob returned from a Ruby-defined function or aggregate exceeds INT_MAX bytes, as documented in the release and PR 762. If upgrading immediately is not possible, reject SQL strings and bound values of 4 GiB or larger before passing them to sqlite3-ruby, or enforce a request body limit well below 4 GiB. Those workarounds can reject legitimate large inputs and do not help if an oversized string is generated internally. See https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx and https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2.

Affected VersionsENISA

sqlite3-ruby < 2.10.2

Affected Packages

rubygems sqlite3 fix: 2.10.2
euvd sqlite3_ruby fix: 2.10.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in rubygems, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

sqlite3-ruby is a Ruby C extension binding to SQLite. The vulnerable code converted Ruby string lengths from long to int before calling SQLite APIs, triggering CWE-681 Incorrect Conversion between Numeric Types. On 64-bit platforms, a string of 4 GiB (2^32 bytes) or larger can wrap the 32-bit length, so SQLite receives a truncated byte count and processes only a prefix. The affected paths are SQL passed to Database#prepare and related execute methods, String and Blob values passed to Statement#bind_param and related methods, and String or Blob values returned from Ruby-defined SQL functions and aggregates via Database#create_function and Database#create_aggregate. A truncated SQL string can drop trailing clauses; if a dropped clause contained a bind placeholder, binding raises SQLite3::RangeException instead of running the query. The upstream fix replaces the cast with RSTRING_LENINT, raising RangeError when a relevant string exceeds INT_MAX bytes.

Know when Ruby gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Unauthenticated network-supplied input gives AV:N/PR:N/UI:N; the 4 GiB-string and multi-copy memory precondition makes it AC:H; a dropped SQL clause can alter query results, giving limited C:L/I:L and A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 20:49 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Medium
very popular Ruby SQLite gem, but confined to Ruby ecosystem
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Ruby

View all
CVE-2017-17405 HIGH POC
8.8 Dec 15

Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl

CVE-2017-17790 CRITICAL POC
9.8 Dec 20

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio

CVE-2017-14064 CRITICAL POC
9.8 Aug 31

Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call

CVE-2016-2336 CRITICAL POC
9.8 Jan 06

Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi

CVE-2026-77602 CRITICAL POC
9.9 Sep 23

Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in

CVE-2026-44266 CRITICAL POC
9.8 Nov 03

Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub

CVE-2016-2337 CRITICAL POC
9.8 Jan 06

Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2016-2339 CRITICAL POC
9.8 Jan 06

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub

CVE-2017-9225 CRITICAL POC
9.8 May 24

An issue was discovered in Oniguruma 6.2.0, as used in Oniguruma-mod in Ruby through 2.4.1 and mbstring in PHP through 7

CVE-2026-27614 CRITICAL POC
9.3 Feb 25

Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th

CVE-2017-0898 CRITICAL POC
9.1 Sep 15

Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) w

CVE-2013-4164 MEDIUM POC
6.8 Nov 23

Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and tru

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy