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):
- Three heap buffer overflows in SQLite
< 3.54.0(CVE-2026-119373,CVE-2026-119374, andCVE-2026-119379, all CVSS v4.0 8.5 / v3.1 7.8 High):CVE-2026-119373(ext/fts5/fts5_index.c):fts5MergeRowidLists()allocatedp1->n + p2->nbytes when merging twodetail=noneFTS5 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 withsecure-deleteenabled,fts5DoSecureDelete()trusted varint footer key offsets (iKeyIn) from the leaf page without checkingiKeyIn > nPgand reusednPgas the output cursor, writing past the end of the leaf page bufferaPgon 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 stringzNewagainst the previous table namezTab. If a crafted changeset repeated the same table name in a second table header block with a larger column countnCol,sessionChangesetApply()skipped reallocatingsApply.abPKandaUpdateMask, causingsessionUpdateFind()tomemset()past the heap allocation.
- SQLite CLI
.recoverdot-command injection through3.54.1(CVE-2026-119586, CVSS v4.0 8.5 / v3.1 7.8 High): When recovering a corrupted or untrusted.dbfile withsqlite3 untrusted.db ".recover" | sqlite3 restored.db,recoverSqlCb()insrc/shell.c.inprintssqlite_schema.sqlvalues verbatim withcli_printf(pState->out, "%s;\n", zOut). BecauserecoverOneStmt()only compiles the first SQL statement inzSqland ignores trailing lines, an attacker can store a validCREATE TABLEstatement followed by a newline and.shellor.systeminsqlite_schema.sql, executing arbitrary OS commands in the receivingsqlite3shell. - Three
SQLITE_LIMIT_EXPR_DEPTHstack-exhaustion bypasses (CVE-2026-119371,CVE-2026-119376,CVE-2026-119591) and aRIGHT/FULL JOIN USINGauthorizer bypass (CVE-2026-119377), all fixed in3.54.0: Chained CTEs inselectExpander(), chainedCOLLATEoperators, andcount(*)over multi-rowVALUESviews bypassed expression-depth limits to crash the host process via C stack exhaustion, whilelookupName()checkedsqlite3_set_authorizer()SQLITE_READpermissions only against the left table of aJOIN ... USING (col)clause. glibcgettextLANGUAGEdirectory traversal (GLIBC-SA-2026-0025/CVE-2026-84243, CVSS v3.1 7.0 High): WhileCVE-2014-0475blocked..inLANG,LC_ALL, andLC_*,gettext()inglibc >= 2.0reads the colon-separatedLANGUAGEenvironment variable directly and accepts entries containing/or..whenever the binary is not runningAT_SECURE(setuid/setgid). WhenLANGUAGEand a non-C/POSIXLANG/LC_*cross a trust boundary (such as an OpenSSHAcceptEnv LANG LC_* LANGUAGEconfiguration on a restrictedForceCommandaccount),gettextloads an attacker-controlled.mocatalog whose mismatchedprintfformat 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
| Ecosystem | Component / Package | CVE / Advisory | Severity | Affected versions | Fixed version / Mitigation | Vulnerable function & file |
|---|---|---|---|---|---|---|
| C / SQLite | sqlite (FTS5 extension) | CVE-2026-119373 | CVSS v4.0 8.5 / v3.1 7.8 High | < 3.54.0 | 3.54.0 (commit e1c9934f9f) | fts5MergeRowidLists() in ext/fts5/fts5_index.c |
| C / SQLite | sqlite (FTS5 extension) | CVE-2026-119374 | CVSS v4.0 8.5 / v3.1 7.8 High | < 3.54.0 | 3.54.0 (commit d9de6eedbe) | fts5DoSecureDelete() in ext/fts5/fts5_index.c |
| C / SQLite | sqlite (Session extension) | CVE-2026-119379 | CVSS v4.0 8.5 / v3.1 7.8 High | < 3.54.0 | 3.54.0 (commit 64459c87cc) | sessionChangesetApply() and sessionUpdateFind() in ext/session/sqlite3session.c |
| C / SQLite CLI | sqlite3 CLI (.recover) | CVE-2026-119586 | CVSS v4.0 8.5 / v3.1 7.8 High | <= 3.54.1 | Do not pipe .recover output from untrusted .db files directly into sqlite3 | recoverStep() in ext/recover/sqlite3recover.c and recoverSqlCb() in src/shell.c.in |
| C / SQLite | sqlite (core SQL parser/planner) | CVE-2026-119371, CVE-2026-119376, CVE-2026-119591 | CVSS v4.0 6.8 / v3.1 5.5 Medium | < 3.54.0 | 3.54.0 (e6ff280c83, d54522a5b8, eff50a067c) | selectExpander() and countOfViewOptimization() in src/select.c; sqlite3ExprAddCollateToken() in src/expr.c |
| C / SQLite | sqlite (authorizer callback) | CVE-2026-119377 | CVSS v4.0 2.0 / v3.1 2.5 Low | < 3.54.0 | 3.54.0 (commit 7ff247c5b9) | lookupName() in src/resolve.c |
| Linux / C | glibc (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
- Upgrade SQLite to
>= 3.54.0: Update systemsqlite3/libsqlite3packages and embedded SQLite amalgamations, particularly in applications that enableSQLITE_ENABLE_FTS5orSQLITE_ENABLE_SESSIONand open user-supplied database files or replication changesets. - Sanitize
.recoveroutput before loading intosqlite3(CVE-2026-119586): Never pipesqlite3 untrusted.db ".recover"straight intosqlite3 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 - Remove
LANGUAGEfromAcceptEnvand privilege-boundary allowlists (CVE-2026-84243): In/etc/ssh/sshd_config(and/etc/ssh/sshd_config.d/*.conf), removeLANGUAGE(or restrictAcceptEnvonMatchblocks that useForceCommand), then reloadsshd(sudo systemctl reload sshd).
Timeline
- 2014-07-11: Florian Weimer reports
Bug 17142(gettextLANGUAGEdirectory traversal) in Sourceware Bugzilla followingCVE-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), andCVE-2026-119591(eff50a067c). - 2026-10-09: SQLite releases version
3.54.0. - 2026-10-30 (
12:16to18:18 UTC): NVD publishesCVE-2026-119371,CVE-2026-119373,CVE-2026-119374,CVE-2026-119376,CVE-2026-119377,CVE-2026-119379,CVE-2026-119586, andCVE-2026-119591for SQLite, and the GNU C Library team publishesGLIBC-SA-2026-0025(CVE-2026-84243) onoss-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
- SQLite commit e1c9934f9f (Fossil a7f8c92f62: fix FTS5 fts5MergeRowidLists negative docid buffer overflow, CVE-2026-119373)
- SQLite commit d9de6eedbe (Fossil 9cd4f9e920: fix FTS5 fts5DoSecureDelete leaf page buffer overrun, CVE-2026-119374)
- SQLite commit 64459c87cc (Fossil 3f57024aec: fix Session extension changeset buffer overrun, CVE-2026-119379)
- SQLite commits e6ff280c83, d54522a5b8, eff50a067c, and 7ff247c5b9 (CVE-2026-119371, CVE-2026-119376, CVE-2026-119591, CVE-2026-119377)
- SQLite 3.54.0 release log
- VulnCheck advisories: SQLite CVE-2026-119373, CVE-2026-119374, CVE-2026-119379, and CLI .recover CVE-2026-119586
- oss-security (2026/10/30/17): The GNU C Library security advisories update for 2026-10-30 (GLIBC-SA-2026-0025 / CVE-2026-84243)
- glibc git advisory GLIBC-SA-2026-0025 (gettext directory traversal via LANGUAGE)