CVE-2026-128084

Source
https://cve.org/CVERecord?id=CVE-2026-128084
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128084.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-128084
Aliases
Published
2026-11-13T18:47:22Z
Modified
2026-11-15T07:03:29Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
sqlite3-ruby: SQL Query Truncation
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-681"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128084.json"
}
References

Affected packages

Git / github.com/sparklemotion/sqlite3-ruby

Affected ranges

Type
GIT
Repo
https://github.com/sparklemotion/sqlite3-ruby
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "2.10.2"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v2.10.2",
            "range": [
                {
                    "fixed": "1d2aa7ab53f1bb98a5dd64e51220ff9a83cd07f5"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

v1.*
v1.3.11
v1.3.12
v1.3.3
v1.3.4
v1.3.5
v1.3.6
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.4.4
v1.5.0
v1.5.0.rc1
v1.5.0.rc2
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.6.0
v1.6.0.rc1
v1.6.0.rc2
v1.6.1
v1.6.2
v1.6.3
v1.6.4
v1.6.5
v1.6.5.rc1
v1.6.6
v1.6.7
v1.6.8
v1.6.9
v1.7.0
Other
v1_2_2
v1_2_3
v1_2_4
v1_2_4_1
v1_2_5
v1_3_0
v1_3_0_beta_1
v1_3_0_beta_2
v1_3_1
v1_3_2
v2.*
v2.0.0
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.1.0
v2.1.0.rc1
v2.1.0.rc2
v2.1.0.rc3
v2.1.1
v2.10.0
v2.10.1
v2.2.0
v2.3.0
v2.3.1
v2.4.0
v2.4.1
v2.5.0
v2.5.0.rc1
v2.6.0
v2.7.0
v2.7.1
v2.7.2
v2.7.3
v2.7.4
v2.8.0
v2.8.1
v2.9.0
v2.9.1
v2.9.2
v2.9.2.rc1
v2.9.2.rc2
v2.9.3
v2.9.4
v2.9.5
v2.9.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-128084.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "147518309810855897636909300863309575475",
            "length": 588
        },
        "id": "CVE-2026-128084-13749dea",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649",
        "target": {
            "file": "ext/sqlite3/statement.c",
            "function": "prepare"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "44238507173574753027291530055077073146",
                "32387262103099953611148681502384328257",
                "210960546512808251934116607994353416228",
                "207842481594138278572546169753203099246",
                "55193259428935440527151984632130259863",
                "93085173660187903785862235012257247370",
                "113888920265865229981833587035683955622",
                "85680092792276639686187989312650000276",
                "55193259428935440527151984632130259863",
                "93085173660187903785862235012257247370",
                "113888920265865229981833587035683955622",
                "85680092792276639686187989312650000276",
                "55193259428935440527151984632130259863",
                "93085173660187903785862235012257247370",
                "113888920265865229981833587035683955622",
                "192526070095897533623655976070183623711"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-128084-19556352",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649",
        "target": {
            "file": "ext/sqlite3/statement.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "190450656522591259546077328455644222323",
            "length": 1852
        },
        "id": "CVE-2026-128084-40af81a3",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649",
        "target": {
            "file": "ext/sqlite3/statement.c",
            "function": "bind_param"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "307233849761376398471912201888079966340",
            "length": 834
        },
        "id": "CVE-2026-128084-b185634e",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649",
        "target": {
            "file": "ext/sqlite3/database.c",
            "function": "set_sqlite3_func_result"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "306072270891785521487486256842761804319",
                "220773405740241682121238179842321666783",
                "95656037808526139237776647673579366827",
                "184041154680286837005566486519349174276",
                "268129208464583443533403999115660579828",
                "112590733564070858264161595953683131915",
                "311716233171619557297160112022362710567",
                "78309487198190935963979127749159603389",
                "74252507225480012360010405461535095823",
                "291466390009594124569681616785024475486",
                "101869370290555553423971033986548819632"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-128084-b5b15071",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/sparklemotion/sqlite3-ruby/commit/41059aa3ccc2c0f910d6df4fccfe36b3c3c6c649",
        "target": {
            "file": "ext/sqlite3/database.c"
        }
    }
]
vanir_signatures_modified
"2026-11-15T07:03:29Z"