Repository navigation
fix(deps): bundle SQLite 3.54.1 (RUSTSEC-2026-0459) - #38
Merged
Merged
Conversation
SQLite before 3.54.0 can return uninitialized page-cache memory when it opens a database together with a `-wal` file of a different page size (CVE-2026-119375). LowQuery opens SQLite files the user picks, which may come from someone else, and bundles SQLite through rusqlite. rusqlite 0.40 pins libsqlite3-sys 0.38 (SQLite 3.53.2), so this moves to rusqlite 0.41.1 / libsqlite3-sys 0.39.1 (SQLite 3.54.1). In 0.41, `columns()` and `columns_with_metadata()` return iterators, so the three `.iter()` calls go.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior
cargo deny check advisoriesnow fails on RUSTSEC-2026-0459 (CVE-2026-119375). SQLite before 3.54.0 can return uninitialized page-cache memory when a database is opened together with a-walfile whose page size differs. LowQuery bundles SQLite throughrusqlite'sbundledfeature and opens SQLite files the user picks, which may come from someone else, so this is fixed instead of being ignored indeny.toml. It surfaced on #37, whose version bump touchedCargo.lock.rusqlite0.40 pinslibsqlite3-sys0.38 (SQLite 3.53.2). This moves torusqlite0.41.1 andlibsqlite3-sys0.39.1 (SQLite 3.54.1). In 0.41,Statement::columns()andcolumns_with_metadata()return iterators instead of vectors, so the three.iter()calls indrivers/sqlite.rsare removed. No other dependency changed inCargo.lock.Validation
cargo deny --manifest-path src-tauri/Cargo.toml check advisories bans sources: advisories ok, bans ok, sources ok.cargo fmt --check,cargo clippy --locked --lib --tests -- -D warnings: clean.cargo test --locked --lib: 212 pass (32 SQLite tests). The SQLite tests run against the bundled library, so they cover the new version; other engines are untouched.Additional context
Kept separate from #37, as CONTRIBUTING asks for dependency changes. Merging this first lets the 0.5.6 release include it.