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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-11-13T18:47:22.594Z
- Modified: 2026-11-18T14:17:31.100Z
- Also known as: GHSA-4fqr-96q8-xrfx
- Weaknesses: CWE-681
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- sparklemotion sqlite3-ruby: < 2.10.2
- sqlite3 (RubyGems): before 2.10.2

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-128084](https://www.cve.org/CVERecord?id=CVE-2026-128084), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-4fqr-96q8-xrfx](https://github.com/advisories/GHSA-4fqr-96q8-xrfx), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-128084](https://nvd.nist.gov/vuln/detail/CVE-2026-128084), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-128084 · Whole record: https://cve.day/CVE-2026-128084.json · Rebuilt by cve.day 2026-11-25T22:59:50.772Z
