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


- **Severity:** Medium 4.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 13 Nov 2026
- **Updated:** 18 Nov 2026
- **Also known as:** GHSA-4fqr-96q8-xrfx, UBUNTU-CVE-2026-128084

## What is CVE-2026-128084?

CVE-2026-128084 is a medium-severity vulnerability in sparklemotion sqlite3-ruby, published on 13 Nov 2026. 

### Official description

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.

Weakness: CWE-681 (Incorrect Conversion between Numeric Types)

## Which versions are affected by CVE-2026-128084?

1 open source package ship an affected version, including sqlite3.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `sqlite3` | RubyGems | `pkg:gem/sqlite3` | All versions | 2.10.2 |

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `sqlite3` | 2.10.2 |

## How do I fix CVE-2026-128084?

Upgrade sqlite3 to 2.10.2 or later.

## Is CVE-2026-128084 being exploited?

There is no known exploitation of CVE-2026-128084 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-128084 and fix it if it is affected.

What it is: CVE-2026-128084 is a medium-severity vulnerability in sparklemotion sqlite3-ruby, published on 13 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-128084 in the wild and no public exploit code.

Affected packages and fixed versions:
- sqlite3 (RubyGems): affected all versions; fixed in 2.10.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-128084/ (Markdown: https://insights.sbomify.com/CVE-2026-128084/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-128084
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-128084
- OSV: https://osv.dev/vulnerability/CVE-2026-128084

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-128084/
Summaries are generated and may contain mistakes; the official description above is the record.
