CVE-2026-119375: `sqlcipher-src` via C SQLite CVE-2026-119375
SQLite before 3.54.0 contains an information disclosure vulnerability that allows attackers to read uninitialized page-cache memory by supplying a WAL file with an undersized page size. Attackers can craft a database and WAL file whose oversized record payload makes queries like substr() return stale bytes, disclosing other table rows and internal pointers.
Other sources
SQLite before 3.54.0 Information Disclosure via WAL Page Size Mismatch
— Microsoft
SQLite versions before 3.54.0 can return uninitialized page-cache memory when a process opens a database file together with a sibling write-ahead-log (-wal) file whose page size differs from the database's. A crafted pair of files can make ordinary queries return stale bytes from the process's memory. The attack vector is local and needs the victim to open the files.
sqlcipher-src ships the SQLCipher amalgamation (SQLCipher is built on SQLite and contains the same sqlite3WalReadFrame code) for -sys crates to compile, so a build that uses it is susceptible to the vulnerability. The releases 419.0.3 to 419.0.6 bundle SQLCipher 4.19.0 on SQLite 3.53.4 and are affected. sqlcipher-src was updated in 420.0.0 (SQLCipher 4.20.0 on SQLite 3.54.1), which contains the fix. The releases 0.1.0 and 0.1.1 contain no SQLCipher source. libsqlite3-sys 0.39.0 and 0.39.1 depend on sqlcipher-src =419.0.6 for their bundled-sqlcipher feature.
Only a process that opens a database file, with its -wal, that a less trusted party could have written is exposed.
— OSV
SQLite versions before 3.54.0 can return uninitialized page-cache memory when a process opens a database file together with a sibling write-ahead-log (-wal) file whose page size differs from the database's. A crafted pair of files can make ordinary queries return stale bytes from the process's memory. The attack vector is local and needs the victim to open the files.
As libsqlite3-sys bundles SQLite when it is built from its bundled source (the bundled feature, which rusqlite's bundled feature enables), it is susceptible to the vulnerability. The releases 0.6.0 to 0.38.2 bundle SQLite 3.13.0 to 3.53.2 and are affected; the earlier releases contain no SQLite source. libsqlite3-sys was updated to bundle the patched version of SQLite in 0.39.0 (SQLite 3.54.0) and 0.39.1 (SQLite 3.54.1), released with rusqlite 0.41. libsqlite3-sys 0.39 declares Rust 1.88 and rusqlite 0.41 declares Rust 1.89.
Only a process that opens a database file, with its -wal, that a less trusted party could have written is exposed. A build that links a system SQLite instead of the bundled source is not affected by the copy in this crate; its exposure is that of the system library's version. The bundled-sqlcipher feature builds SQLCipher instead of SQLite; in 0.39.0 and 0.39.1 it depends on sqlcipher-src =419.0.6, which bundles SQLite 3.53.4 and is affected.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/sqlite3to a version that resolves this vulnerability.Fixed in 3.54.1-1 - Upgrade
Upgrade
bitnami/sqliteto a version that resolves this vulnerability.Fixed in 3.54.0 - Upgrade
Upgrade
rust/sqlcipher-srcto a version that resolves this vulnerability.Fixed in 420.0.0 - Upgrade
Upgrade
rust/libsqlite3-systo a version that resolves this vulnerability.Fixed in 0.39.0 - Upgrade
Upgrade
azurelinux/sqliteto a version that resolves this vulnerability.Fixed in 3.44.0-5 - Upgrade
Upgrade
libsqlite3-systo a version that resolves this vulnerability.Fixed in 0.39.0 - Upgrade
Upgrade
sqlcipher-srcto a version that resolves this vulnerability.Fixed in 420.0.0
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using SQLite versions before 3.54.0 are exposed when they process an attacker-supplied or attacker-controlled database together with its WAL file. The issue requires the application to run queries against that crafted content.
What does an attacker need to exploit it?
The attacker needs to supply a database and WAL file with an undersized WAL page size and an oversized record payload. Exploitation also requires user interaction, as reflected by the UI:P metric.
What information could be disclosed?
Queries such as substr() can return stale bytes from uninitialized page-cache memory. The disclosed data may include rows from other tables and internal pointers.
How can I determine whether an environment is affected?
Check the SQLite version in use: versions before 3.54.0 are affected. Also identify workflows that open or query database and WAL files obtained from untrusted sources.