Skip to content

Bump rusqlite to 0.41 for the bundled SQLite advisory - #12

Merged
Fazmin merged 1 commit into
mainfrom
fix/sqlite-advisory
Nov 11, 2026
Merged

Fazmin merged 1 commit into
mainfrom
fix/sqlite-advisory

Conversation

@Fazmin

@Fazmin Fazmin commented Nov 11, 2026

Copy link
Copy Markdown
Owner

CI on main has been failing the dependency audit since #11 merged, so no release went out. The cause is a new advisory, not anything in #11. It was published after that PR's checks had already passed.

Advisory: 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. rusqlite 0.32 pulls in libsqlite3-sys 0.30.1, which bundles an affected SQLite.

The real-world risk to cve-intel is low, because an attacker would need write access to ~/.cve-mcp/ first. The audit still blocks every release until it's fixed.

Change: rusqlite 0.32 → 0.41, which brings in libsqlite3-sys 0.39.1 and SQLite 3.54.1. No code changes were needed. rusqlite 0.41 needs Rust 1.89, and our rust-version is already 1.90.

Checked locally:

  • cargo fmt --check, clippy with -D warnings, and cargo test -p cve-core -p cve-server all pass.
  • cargo check -p cve-intel-desktop passes, and so do the version and CVSS smoke tests.
  • None of the code's SQL calls pass more than one statement to execute/prepare. Newer rusqlite rejects that, and the compiler wouldn't catch it.
  • Existing on-disk databases (cache, saved scans, watchlist) still open and read fine.

Merging this should let CI pass on main and publish the next release with #11 included.

RUSTSEC-2026-0459 (CVE-2026-119375): SQLite before 3.54.0 can return
uninitialized page-cache memory when a database is opened with a -wal
file whose page size differs. libsqlite3-sys 0.30.1, pulled in by
rusqlite 0.32, bundles an affected SQLite. rusqlite 0.41 brings
libsqlite3-sys 0.39.1 with SQLite 3.54.1.

No code changes needed. The advisory was published after PR #11's
checks ran, so CI on main failed the dependency audit and the release
was skipped.
@Fazmin
Fazmin merged commit c389f53 into main Nov 11, 2026
9 of 10 checks passed
@Fazmin
Fazmin deleted the fix/sqlite-advisory branch November 11, 2026 04:25
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