Numeric Truncation Error Affecting sqlite3 package, versions <2.10.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.32% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-SQLITE3-22840485
  • published24 Nov 2026
  • disclosed13 Nov 2026
  • creditluke-elttam

Introduced: 13 Nov 2026

NewCVE-2026-128084  (opens in a new tab)
CWE-197  (opens in a new tab)
CWE-681  (opens in a new tab)

How to fix?

Upgrade sqlite3 to version 2.10.2 or higher.

Overview

Affected versions of this package are vulnerable to Numeric Truncation Error via string-length handling in SQL preparation, parameter binding, and Ruby-defined SQLite function results. An attacker who can supply a SQL string or bound value of 4 GiB or larger makes SQLite receive only its prefix; when attacker-controlled content is inlined into SQL and the truncated portion contains a consequential clause such as a trailing WHERE, the clause is dropped, though a dropped bind placeholder instead causes SQLite3::RangeException and the query does not run. Oversized String or Blob results from Ruby-defined functions and aggregates are truncated as well, and exploitation requires the application to process a string that large.

Notes

  • On the bound-value path, truncation exposes a validation bypass only when the application validates the full value before binding it; SQLite receives just the attacker-controlled prefix.
  • On the SQL-preparation path, if truncation removes a clause containing a bind placeholder, parameter binding raises SQLite3::RangeException instead of executing the query.

Workarounds

  • Reject SQL strings and bound values of 4 GiB or larger before passing them to sqlite3-ruby; this prevents oversized inputs from being truncated by SQLite.
  • Limit request body size well below 4 GiB; this prevents an attacker from supplying an oversized string through a request.

CVSS Base Scores

version 4.0
version 3.1