SQLite memory disclosure via undersized WAL page size
SQLite
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| libsqlite3-sys crates.io |
|
|
| sqlcipher-src crates.io |
|
|
SQLite
| Product | Affected | Fixed in |
|---|---|---|
| libsqlite3-sys crates.io |
|
|
| sqlcipher-src crates.io |
|
|
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.
From the CVE record · VulnCheck
SQLite before 3.54.0 can expose uninitialized page-cache memory when it processes a crafted database and WAL file with an undersized page size. An attacker who can supply those files can cause queries to return stale bytes, potentially revealing other table rows and internal pointers.
Check deployments using SQLite before 3.54.0, crates.io libsqlite3-sys versions >=0.6.0 and <0.39.0, or crates.io sqlcipher-src versions >=419.0.3 and <420.0.0.