Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit 4GiB attacker-controlled string
-
DeliveryInt cast wraps string length
-
ExploitSQLite processes only truncated prefix
-
ExecutionTrailing WHERE clause silently dropped
-
ImpactQuery 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Ruby before 2.4.3 allows Net::FTP command injection. Rated high severity (CVSS 8.8), this vulnerability is remotely expl
The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injectio
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
Type confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Rated critical severi
Authenticated remote code execution in OpenC3 COSMOS (Ruby gem 'openc3' versions 5.1.0 through 7.2.1) lets any logged-in
Ruby code execution in Elo (npm @enspirit/elo) through 1.0.0 lets an attacker who controls Elo source gain arbitrary Rub
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Rated critical severity (CVSS 9.8), this vulnerabilit
An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Rub
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
Stored XSS in Bugsink error tracking tool before 2.0.13 allows unauthenticated attackers to inject persistent scripts th
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
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
EUVD-2026-125713
GHSA-4fqr-96q8-xrfx
NVD
CVE.org
EPSS
Exploit-DB