high

CVE

CVE-2026-119373, CVE-2026-119374, CVE-2026-119379, CVE-2026-119586, CVE-2026-119371, CVE-2026-119376, CVE-2026-119591, CVE-2026-119377, CVE-2026-84243

CWE

CWE-787, CWE-77, CWE-22, CWE-674, CWE-863, CWE-134

Affected Surface

  • SQLite `< 3.54.0` built with FTS5 or the Session extension (`CVE-2026-119373`, `CVE-2026-119374`, `CVE-2026-119379`, `CVE-2026-119371`, `CVE-2026-119376`, `CVE-2026-119591`, and `CVE-2026-119377`)
  • SQLite command-line shell (`sqlite3`) `<= 3.54.1` when piping `.recover` output into another `sqlite3` process (`CVE-2026-119586`)
  • GNU C Library (`glibc`) `>= 2.0` (`GLIBC-SA-2026-0025` / `CVE-2026-84243`) when untrusted `LANGUAGE` and `LANG` / `LC_*` environment variables cross a trust boundary into a non-setuid/setgid (`!AT_SECURE`) program

TL;DR

On 30 October 2026, NVD and oss-security published eight vulnerabilities in SQLite (reported by Abraxas Labs and YEONBA) alongside a new GNU C Library (glibc) security advisory (GLIBC-SA-2026-0025 / CVE-2026-84243, reported by Florian Weimer):

  1. Three heap buffer overflows in SQLite < 3.54.0 (CVE-2026-119373, CVE-2026-119374, and CVE-2026-119379, all CVSS v4.0 8.5 / v3.1 7.8 High):
    • CVE-2026-119373 (ext/fts5/fts5_index.c): fts5MergeRowidLists() allocated p1->n + p2->n bytes when merging two detail=none FTS5 prefix rowid lists. When a table contained a negative rowid (such as -9223372036854775808, stored as a 1-byte delta in its input list) followed by positive rowids from the other list, the merged varint delta expanded by up to 9 bytes and wrote past the heap buffer.
    • CVE-2026-119374 (ext/fts5/fts5_index.c): When deleting from an FTS5 table with secure-delete enabled, fts5DoSecureDelete() trusted varint footer key offsets (iKeyIn) from the leaf page without checking iKeyIn > nPg and reused nPg as the output cursor, writing past the end of the leaf page buffer aPg on a crafted database file.
    • CVE-2026-119379 (ext/session/sqlite3session.c): In the Session extension (sqlite3changeset_apply()), sessionChangesetApply() detected table header transitions by comparing the table name string zNew against the previous table name zTab. If a crafted changeset repeated the same table name in a second table header block with a larger column count nCol, sessionChangesetApply() skipped reallocating sApply.abPK and aUpdateMask, causing sessionUpdateFind() to memset() past the heap allocation.
  2. SQLite CLI .recover dot-command injection through 3.54.1 (CVE-2026-119586, CVSS v4.0 8.5 / v3.1 7.8 High): When recovering a corrupted or untrusted .db file with sqlite3 untrusted.db ".recover" | sqlite3 restored.db, recoverSqlCb() in src/shell.c.in prints sqlite_schema.sql values verbatim with cli_printf(pState->out, "%s;\n", zOut). Because recoverOneStmt() only compiles the first SQL statement in zSql and ignores trailing lines, an attacker can store a valid CREATE TABLE statement followed by a newline and .shell or .system in sqlite_schema.sql, executing arbitrary OS commands in the receiving sqlite3 shell.
  3. Three SQLITE_LIMIT_EXPR_DEPTH stack-exhaustion bypasses (CVE-2026-119371, CVE-2026-119376, CVE-2026-119591) and a RIGHT/FULL JOIN USING authorizer bypass (CVE-2026-119377), all fixed in 3.54.0: Chained CTEs in selectExpander(), chained COLLATE operators, and count(*) over multi-row VALUES views bypassed expression-depth limits to crash the host process via C stack exhaustion, while lookupName() checked sqlite3_set_authorizer() SQLITE_READ permissions only against the left table of a JOIN ... USING (col) clause.
  4. glibc gettext LANGUAGE directory traversal (GLIBC-SA-2026-0025 / CVE-2026-84243, CVSS v3.1 7.0 High): While CVE-2014-0475 blocked .. in LANG, LC_ALL, and LC_*, gettext() in glibc >= 2.0 reads the colon-separated LANGUAGE environment variable directly and accepts entries containing / or .. whenever the binary is not running AT_SECURE (setuid/setgid). When LANGUAGE and a non-C/POSIX LANG/LC_* cross a trust boundary (such as an OpenSSH AcceptEnv LANG LC_* LANGUAGE configuration on a restricted ForceCommand account), gettext loads an attacker-controlled .mo catalog whose mismatched printf format specifiers can achieve arbitrary code execution.

What to do now: Upgrade embedded SQLite builds, system libraries (libsqlite3), and language bindings that vendor SQLite to >= 3.54.0. Never pipe sqlite3 <db> ".recover" directly into another sqlite3 CLI invocation on untrusted database files; use .recover --ignore-freelist to a file and inspect or filter lines starting with . (grep -v '^\.') before loading. On Linux hosts using OpenSSH ForceCommand or sudo/wrapper boundaries, remove LANGUAGE from AcceptEnv in /etc/ssh/sshd_config and env_keep in /etc/sudoers.

Affected packages and components

EcosystemComponent / PackageCVE / AdvisorySeverityAffected versionsFixed version / MitigationVulnerable function & file
C / SQLitesqlite (FTS5 extension)CVE-2026-119373CVSS v4.0 8.5 / v3.1 7.8 High< 3.54.03.54.0 (commit e1c9934f9f)fts5MergeRowidLists() in ext/fts5/fts5_index.c
C / SQLitesqlite (FTS5 extension)CVE-2026-119374CVSS v4.0 8.5 / v3.1 7.8 High< 3.54.03.54.0 (commit d9de6eedbe)fts5DoSecureDelete() in ext/fts5/fts5_index.c
C / SQLitesqlite (Session extension)CVE-2026-119379CVSS v4.0 8.5 / v3.1 7.8 High< 3.54.03.54.0 (commit 64459c87cc)sessionChangesetApply() and sessionUpdateFind() in ext/session/sqlite3session.c
C / SQLite CLIsqlite3 CLI (.recover)CVE-2026-119586CVSS v4.0 8.5 / v3.1 7.8 High<= 3.54.1Do not pipe .recover output from untrusted .db files directly into sqlite3recoverStep() in ext/recover/sqlite3recover.c and recoverSqlCb() in src/shell.c.in
C / SQLitesqlite (core SQL parser/planner)CVE-2026-119371, CVE-2026-119376, CVE-2026-119591CVSS v4.0 6.8 / v3.1 5.5 Medium< 3.54.03.54.0 (e6ff280c83, d54522a5b8, eff50a067c)selectExpander() and countOfViewOptimization() in src/select.c; sqlite3ExprAddCollateToken() in src/expr.c
C / SQLitesqlite (authorizer callback)CVE-2026-119377CVSS v4.0 2.0 / v3.1 2.5 Low< 3.54.03.54.0 (commit 7ff247c5b9)lookupName() in src/resolve.c
Linux / Cglibc (gettext / intl)CVE-2026-84243 (GLIBC-SA-2026-0025)CVSS v3.1 7.0 High>= 2.0 (!AT_SECURE)Strip LANGUAGE across privilege/command boundaries (such as sshd_config AcceptEnv)DCIGETTEXT() in intl/dcigettext.c

Technical analysis

1. FTS5 and Session extension heap buffer overflows (CVE-2026-119373, CVE-2026-119374, and CVE-2026-119379)

While the SQLite project notes in its general vulnerability guidance that many SQLite CVEs require arbitrary SQL execution, CVE-2026-119373, CVE-2026-119374, and CVE-2026-119379 are heap buffer overflows reachable either by opening and querying/deleting from an untrusted SQLite database file (for example in mobile apps, desktop tools, browser storage, or AI agent memory stores) or by applying a replication changeset via sqlite3changeset_apply().

In CVE-2026-119373, fts5MergeRowidLists() in ext/fts5/fts5_index.c merges two sorted rowid lists (p1 and p2) when evaluating a prefix query on a detail=none FTS5 table. Because FTS5 encodes rowid lists as varint deltas between consecutive rowids, the function assumed that the merged output buffer out could never exceed p1->n + p2->n bytes. However, when one list starts with INT64_MIN (-9223372036854775808, encoded as a small initial value) and is merged before a positive rowid from the second list, the unsigned delta (u64)iRowid2 - (u64)iOut requires a 9-byte varint that was not present in either input buffer, overflowing out.p (commit e1c9934f9f):

--- a/ext/fts5/fts5_index.c
+++ b/ext/fts5/fts5_index.c
@@ -6105,7 +6105,7 @@ static void fts5MergeRowidLists(
   (void)nBuf;
   memset(&out, 0, sizeof(out));
   assert( nBuf==1 );
-  sqlite3Fts5BufferSize(&p->rc, &out, p1->n + p2->n);
+  sqlite3Fts5BufferSize(&p->rc, &out, p1->n + p2->n + 9);
   if( p->rc ) return;
 
   fts5NextRowid(p1, &i1, &iRowid1);
@@ -6113,12 +6113,12 @@ static void fts5MergeRowidLists(
   while( i1>=0 || i2>=0 ){
     if( i1>=0 && (i2<0 || iRowid1<iRowid2) ){
       assert( iOut==0 || iRowid1>iOut );
-      fts5BufferSafeAppendVarint(&out, iRowid1 - iOut);
+      fts5BufferSafeAppendVarint(&out, (u64)iRowid1 - (u64)iOut);

In CVE-2026-119374, fts5DoSecureDelete() shifts leaf page data to overwrite a deleted entry and then rebuilds the page’s varint footer index inside aPg. Before commit d9de6eedbe, it accumulated 32-bit varints from aIdx into int iKeyIn without checking whether iKeyIn exceeded the original page size nPg, and mutated nPg in place while writing varints to &aPg[nPg]:

--- a/ext/fts5/fts5_index.c
+++ b/ext/fts5/fts5_index.c
@@ -5526,11 +5526,15 @@ static void fts5DoSecureDelete(
     for(iIdx=0; iIdx<nIdx; /* no-op */){
       u32 iVal = 0;
       iIdx += fts5GetVarint32(&aIdx[iIdx], iVal);
       iKeyIn += iVal;
+      if( iKeyIn>nPg ){
+        FTS5_CORRUPT_IDX(p);
+        break;
+      }
       if( iKeyIn!=iDelKeyOff ){
         int iKeyOut = (iKeyIn - (iKeyIn>iOff ? nShift : 0));
-        nPg += sqlite3Fts5PutVarint(&aPg[nPg], iKeyOut - iPrevKeyOut);
+        nNewPg += sqlite3Fts5PutVarint(&aPg[nNewPg], iKeyOut - iPrevKeyOut);
         iPrevKeyOut = iKeyOut;
       }
     }

In CVE-2026-119379, sessionChangesetApply() in ext/session/sqlite3session.c iterates through operations in a binary changeset. A changeset consists of one or more table headers ('T' or 'P', each declaring a table name and a column count nCol) followed by row operations. Because sessionChangesetApply() checked whether it had entered a new table header by testing if( zTab==0 || sqlite3_strnicmp(zNew, zTab, nTab+1) ), a crafted changeset that declared table "t" with nCol = 2 and then emitted a second 'T' header also named "t" with nCol = 64 bypassed the if block. The parser updated pIter->nCol to 64 while keeping the sApply buffers sized for 2 columns, causing sessionUpdateFind() to memset() past the heap allocation (commit 64459c87cc replaces the string comparison with an explicit bNew flag set by sessionChangesetNext() whenever a table header byte is read).

2. SQLite CLI .recover dot-command injection (CVE-2026-119586)

In ext/recover/sqlite3recover.c, the .recover extension reads schema definitions (zSql) from the sqlite_schema table of the source database, tests whether zSql compiles against a scratch database via recoverOneStmt(p->dbOut, zSql), and if rc == SQLITE_OK, passes the entire zSql string to recoverSqlCallback(p, zSql):

// ext/recover/sqlite3recover.c lines 1221-1223 (version 3.54.1)
rc = recoverOneStmt(p->dbOut, zSql);
if( rc==SQLITE_OK ){
  recoverSqlCallback(p, zSql);

Inside recoverOneStmt(), sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0) compiles only the first SQL statement in zSql and ignores everything after the first semicolon (pzTail is passed as 0). When the sqlite3 CLI prints the recovered SQL script in recoverSqlCb() (src/shell.c.in), it writes the entire multi-line zSql string verbatim to stdout:

// src/shell.c.in lines 7877-7891 (version 3.54.1)
static int recoverSqlCb(void *pCtx, const char *zSql){
  ShellState *pState = (ShellState*)pCtx;
  sqlite3_str *pOut = sqlite3_str_new(pState->db);
  char *zOut;
  int rc = SQLITE_OK;
  sqlite3_str_appendall(pOut, zSql);
  appendCompletion(pOut, zSql, 0);
  zOut = sqlite3_str_value(pOut);
  if( zOut ){
    cli_printf(pState->out, "%s;\n", zOut);
  }

If an attacker modifies sqlite_schema.sql in a database file (using PRAGMA writable_schema = ON or a hex editor) so that a table’s DDL contains:

CREATE TABLE t(x INT);
.shell id > /tmp/pwned

recoverOneStmt() validates CREATE TABLE t(x INT); and succeeds, and .recover emits .shell id > /tmp/pwned on its own line. Any administrator or backup script that runs sqlite3 corrupt.db ".recover" | sqlite3 clean.db feeds that .shell or .system dot-command directly into the second sqlite3 interactive parser, executing arbitrary OS commands.

3. glibc gettext directory traversal via LANGUAGE (GLIBC-SA-2026-0025 / CVE-2026-84243)

Published on oss-security on 30 October 2026 (2026/10/30/17), GLIBC-SA-2026-0025 (CVE-2026-84243) documents a long-standing gap in the fix for CVE-2014-0475. While setlocale() rejects .. path components in LC_ALL, LC_*, and LANG, DCIGETTEXT() in glibc reads the LANGUAGE environment variable directly whenever the active LC_MESSAGES locale is anything other than "C", "C.<encoding>", or "POSIX" and the process is not running AT_SECURE (getauxval(AT_SECURE) == 0).

Because LANGUAGE is split on : and each entry is appended directly to the domain’s message catalog base directory (typically /usr/share/locale/<entry>/LC_MESSAGES/<domain>.mo) without rejecting / or .., setting LANG=en_US.UTF-8 and LANGUAGE=../../../../tmp/attacker causes any gettext() call in a non-setuid binary to mmap() /tmp/attacker/LC_MESSAGES/<domain>.mo. If the attacker supplies a .mo catalog that translates a message passed to printf(gettext("..."), ...) into a string containing %n or extra format specifiers, the caller invokes undefined printf behavior and arbitrary code execution. This is directly reachable on SSH servers whose sshd_config includes AcceptEnv LANG LC_* LANGUAGE (a common default on Debian and Ubuntu) when an account is supposed to be restricted to a ForceCommand or restricted shell.

Detection and remediation

# 1. Check installed SQLite CLI and library versions
sqlite3 --version
python3 -c 'import sqlite3; print("Python sqlite3:", sqlite3.sqlite_version)'

# 2. Search scripts and CI workflows for unsafe sqlite3 .recover pipelines
rg -n '\.recover' --glob '*.{sh,py,yml,yaml}' . 2>/dev/null

# 3. Check OpenSSH server configs and sudoers for LANGUAGE environment pass-through (CVE-2026-84243)
grep -rnE '^\s*AcceptEnv\b.*LANGUAGE' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/ 2>/dev/null || true
sudo grep -rnE 'env_keep.*LANGUAGE' /etc/sudoers /etc/sudoers.d/ 2>/dev/null || true
  1. Upgrade SQLite to >= 3.54.0: Update system sqlite3 / libsqlite3 packages and embedded SQLite amalgamations, particularly in applications that enable SQLITE_ENABLE_FTS5 or SQLITE_ENABLE_SESSION and open user-supplied database files or replication changesets.
  2. Sanitize .recover output before loading into sqlite3 (CVE-2026-119586): Never pipe sqlite3 untrusted.db ".recover" straight into sqlite3 new.db. Write the recovery SQL to a file and reject or strip any line beginning with a leading dot (.):
    sqlite3 untrusted.db ".recover" > recovered.sql
    if grep -nE '^\s*\.' recovered.sql; then
      echo "ERROR: dot-commands found in recovered SQL" >&2
      exit 1
    fi
  3. Remove LANGUAGE from AcceptEnv and privilege-boundary allowlists (CVE-2026-84243): In /etc/ssh/sshd_config (and /etc/ssh/sshd_config.d/*.conf), remove LANGUAGE (or restrict AcceptEnv on Match blocks that use ForceCommand), then reload sshd (sudo systemctl reload sshd).

Timeline

  • 2014-07-11: Florian Weimer reports Bug 17142 (gettext LANGUAGE directory traversal) in Sourceware Bugzilla following CVE-2014-0475.
  • 2026-07-05 to 2026-10-05: SQLite commits fixes for CVE-2026-119377 (7ff247c5b9), CVE-2026-119373 (e1c9934f9f), CVE-2026-119374 (d9de6eedbe), CVE-2026-119379 (64459c87cc), CVE-2026-119376 (d54522a5b8), CVE-2026-119371 (e6ff280c83), and CVE-2026-119591 (eff50a067c).
  • 2026-10-09: SQLite releases version 3.54.0.
  • 2026-10-30 (12:16 to 18:18 UTC): NVD publishes CVE-2026-119371, CVE-2026-119373, CVE-2026-119374, CVE-2026-119376, CVE-2026-119377, CVE-2026-119379, CVE-2026-119586, and CVE-2026-119591 for SQLite, and the GNU C Library team publishes GLIBC-SA-2026-0025 (CVE-2026-84243) on oss-security.

From research to remediation

Check whether this pattern exists in your codebase

Turn this research into a remediation workflow. Use AI-native static analysis to find similar application vulnerabilities and generate review-ready fixes.

References