Skip to content

fix(deps): bundle SQLite 3.54.1 (RUSTSEC-2026-0459) - #38

Merged
FabioHAraujo merged 1 commit into
mainfrom
fix/rusqlite-advisory
Nov 13, 2026
Merged

FabioHAraujo merged 1 commit into
mainfrom
fix/rusqlite-advisory

Conversation

@FabioHAraujo

Copy link
Copy Markdown
Contributor

Problem and resulting behavior

cargo deny check advisories now 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 -wal file whose page size differs. LowQuery bundles SQLite through rusqlite's bundled feature and opens SQLite files the user picks, which may come from someone else, so this is fixed instead of being ignored in deny.toml. It surfaced on #37, whose version bump touched Cargo.lock.

rusqlite 0.40 pins libsqlite3-sys 0.38 (SQLite 3.53.2). This moves to rusqlite 0.41.1 and libsqlite3-sys 0.39.1 (SQLite 3.54.1). In 0.41, Statement::columns() and columns_with_metadata() return iterators instead of vectors, so the three .iter() calls in drivers/sqlite.rs are removed. No other dependency changed in Cargo.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.

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.
@FabioHAraujo
FabioHAraujo merged commit cbc3675 into main Nov 13, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant