# CVE-2026-128084: sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger

- **Severity:** MEDIUM 4.8
- **CVSS:** 4.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.33% (percentile 18, 2026-11-29)
- **CWE:** CWE-681
- **Aliases:** GHSA-4fqr-96q8-xrfx
- **Published:** 2026-11-13T18:47:22.594Z
- **Modified:** 2026-11-18T14:17:31.100Z

## Who should check

- Projects that depend on RubyGems package sqlite3 (\<= 2.10.1)
- Anyone running sparklemotion sqlite3-ruby \< 2.10.2

## 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.

## Affected and fixed versions

- RubyGems `sqlite3`: affected \<= 2.10.1; fixed 2.10.2 (ghsa)
- sparklemotion sqlite3-ruby: \< 2.10.2 (cvelist)

## Technologies

RubyGems

## Mitigation

- Upgrade sqlite3 to 2.10.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-128084. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-128084.md
Affected: sqlite3 <= 2.10.1
Fixed in: 2.10.2

Steps:
1. Search this machine and project for sqlite3 (RubyGems), sparklemotion sqlite3-ruby: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-128084 being exploited?

There is no confirmed exploitation: CVE-2026-128084 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-128084?

Medium: CVSS 4.8 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

sqlite3 \<= 2.10.1.

### Is there a fix for CVE-2026-128084?

Yes. Fixed in 2.10.2. Upgrade sqlite3 to 2.10.2 or later.

### How do I check if I'm affected by CVE-2026-128084?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-4fqr-96q8-xrfx>
- patch: <https://github.com/sparklemotion/sqlite3-ruby/pull/762>
- patch: <https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649>
- other: <https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.10.2>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/GHSA-4fqr-96q8-xrfx.yml>
- other: <https://github.com/advisories/GHSA-4fqr-96q8-xrfx>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-128084>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-4fqr-96q8-xrfx> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-128084> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-128084>
