You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the RUSTSEC-2026-0459 audit exception once SQLCipher ships SQLite 3.54 #1243
The dependency audit no longer needs an exception for RUSTSEC-2026-0459, because the bundled SQLCipher contains the fixed SQLite.
Context
RUSTSEC-2026-0459 (CVE-2026-119375): SQLite before 3.54.0 can return uninitialized page-cache memory when a process opens a database together with a crafted -wal file whose page size differs. The attack is local and needs a database file and -wal that a less trusted party could write.
The fix cannot be applied today:
sqlx-sqlite 0.9.0 requires libsqlite3-sys below 0.38; the patched release is 0.39.
crates/persistence-sqlite/Cargo.toml pins libsqlite3-sys to =0.37.0 with bundled-sqlcipher-vendored-openssl. According to the advisory, the SQLCipher build of libsqlite3-sys 0.39.1 (sqlcipher-src 419.0.6) still bundles SQLite 3.53.4 and stays affected.
Exposure was reviewed: the application opens only its own database in its data directory. Backups are a separate encrypted file format that is imported through typed snapshots, not opened as a database. Writing a crafted -wal there already requires write access to the user's data directory.
Requirements
When a sqlx release allows a libsqlite3-sys whose SQLCipher build bundles SQLite 3.54 or newer, upgrade to it and remove RUSTSEC-2026-0459 from .cargo/audit.toml.
Acceptance Criteria
Cargo.lock contains a libsqlite3-sys whose bundled SQLCipher is based on SQLite 3.54 or newer
.cargo/audit.toml no longer lists RUSTSEC-2026-0459
PRAGMA cipher_version and sqlite_version() are checked by a test or recorded in the PR
The existing encryption and migration tests of persistence-sqlite pass
Relevant automated tests pass
Technical Notes
Waits for upstream; check on each sqlx or libsqlite3-sys release, at the latest 2027-01-31. Security-relevant area: database encryption (Spec 0101).
CI is red on the base branch as well, waiting for a fix there: Question: May the license allow-list (deny.toml [licenses] allow, and the list the third-party notices generator reads) accept blessing and WTFPL, which the bundled SQLCipher source crate sqlcipher-src 420.0.0 declares ("MIT AND BSD-3-Clause AND blessing AND WTFPL")?
Context: PR #1351 bumps libsqlite3-sys 0.37.0 -> 0.40.0 (sqlx-sqlite 0.9.1 allows it); the lock now has SQLite 3.54.1 inside SQLCipher 4.20.0 and the RUSTSEC-2026-0459 exception is removed (cargo audit clean, persistence-sqlite tests 221 passed, new version test passes). CI is red only on the license gates: cargo-deny licenses / cargo about generate (Test jobs, Dependency Audit) reject sqlcipher-src for blessing (SQLite public-domain blessing) and WTFPL (libtomcrypt). Spec 0090 A12 says unlisted licenses must be reported to a human, so I did not extend the list. Browser Tests also failed, probably related to the same job setup; not investigated.
Options:
Allow blessing and WTFPL globally (or as a per-crate exception for sqlcipher-src only, ADR 0135 mechanism) — fixes CI, then rerun; I recommend the per-crate exception.
Do not accept them — the SQLite 3.54 fix stays unreachable and the RUSTSEC-2026-0459 exception must stay (the PR would be closed).
Recommendation: Option 1 with a per-crate exception for sqlcipher-src.
Waiting for the CI fix in #1353 (CI fails on develop: Browser Tests (Playwright)). PR #1351 is red only because of that; it continues once #1353 is merged.
Needs maintainer: Question: May the license allow-list (deny.toml [licenses] allow and the third-party notices generator list) accept blessing and WTFPL, declared by the bundled SQLCipher source crate sqlcipher-src 420.0.0 ("MIT AND BSD-3-Clause AND blessing AND WTFPL")?
Context: PR #1351 is complete (libsqlite3-sys 0.40.0 with SQLite 3.54.1 in SQLCipher 4.20.0, RUSTSEC-2026-0459 exception removed, version test added, persistence-sqlite tests pass). The develop CI fix #1353 is merged; Dependency Audit still fails only on the license gates (cargo-deny licenses / cargo about) for sqlcipher-src. Spec 0090 A12 requires unlisted licenses to be reported to a human, so the list was not extended; no maintainer answer is in the issue yet.
Options:
Allow blessing and WTFPL for sqlcipher-src only (per-crate exception, ADR 0135 mechanism) — fixes CI.
Do not accept them — the exception for RUSTSEC-2026-0459 must stay and the PR is closed.
Recommendation: Option 1.
Implementation ready for review. PR #1351. libsqlite3-sys 0.40 (SQLCipher on SQLite 3.54.1), RUSTSEC-2026-0459 exception removed, version test added. Per maintainer decision, blessing/WTFPL allowed for sqlcipher-src only; notices read SQLCipher licenses from sqlcipher-src. CI green.
Review passed – moving on to merge. Approved. libsqlite3-sys 0.40.0 bundles SQLCipher 4.20.0 on SQLite 3.54.1, and the crypto provider is still OpenSSL. RUSTSEC-2026-0459 is removed and cargo audit is clean with the advisory loaded. The new version test is red against the old lock (SQLite 3.50.4) and green with the PR. persistence-sqlite: 221 tests passed; cargo deny licenses/sources/bans ok; CI green. Per the maintainer decision, blessing/WTFPL are allowed for sqlcipher-src only. Non-blocking follow-up: refresh the Spec 0101 §1 measurement lines (SQLCipher/SQLite versions) and optionally name LibTomCrypt in Spec 0099 A1.1(e).
Activity
chore(deps): update rmcp to 3.9.0 and record RUSTSEC-2026-0459 (#1244)
chore(deps): update rmcp to 3.9.0 and record RUSTSEC-2026-0459 (#1245)
build(persistence-sqlite): bump libsqlite3-sys to 0.40 (SQLCipher on …
smart-ssh-coder commentedon Nov 19, 2026
CI is red on the base branch as well, waiting for a fix there: Question: May the license allow-list (deny.toml
[licenses] allow, and the list the third-party notices generator reads) acceptblessingandWTFPL, which the bundled SQLCipher source cratesqlcipher-src420.0.0 declares ("MIT AND BSD-3-Clause AND blessing AND WTFPL")?Context: PR #1351 bumps libsqlite3-sys 0.37.0 -> 0.40.0 (sqlx-sqlite 0.9.1 allows it); the lock now has SQLite 3.54.1 inside SQLCipher 4.20.0 and the RUSTSEC-2026-0459 exception is removed (cargo audit clean, persistence-sqlite tests 221 passed, new version test passes). CI is red only on the license gates: cargo-deny licenses /
cargo about generate(Test jobs, Dependency Audit) reject sqlcipher-src forblessing(SQLite public-domain blessing) andWTFPL(libtomcrypt). Spec 0090 A12 says unlisted licenses must be reported to a human, so I did not extend the list. Browser Tests also failed, probably related to the same job setup; not investigated.Options:
blessingandWTFPLglobally (or as a per-crate exception for sqlcipher-src only, ADR 0135 mechanism) — fixes CI, then rerun; I recommend the per-crate exception.Recommendation: Option 1 with a per-crate exception for sqlcipher-src.
smart-ssh-coordinator commentedon Nov 19, 2026
Waiting for the CI fix in #1353 (CI fails on develop: Browser Tests (Playwright)). PR #1351 is red only because of that; it continues once #1353 is merged.
smart-ssh-coder commentedon Nov 19, 2026
Needs maintainer: Question: May the license allow-list (deny.toml
[licenses] allowand the third-party notices generator list) acceptblessingandWTFPL, declared by the bundled SQLCipher source cratesqlcipher-src420.0.0 ("MIT AND BSD-3-Clause AND blessing AND WTFPL")?Context: PR #1351 is complete (libsqlite3-sys 0.40.0 with SQLite 3.54.1 in SQLCipher 4.20.0, RUSTSEC-2026-0459 exception removed, version test added, persistence-sqlite tests pass). The develop CI fix #1353 is merged; Dependency Audit still fails only on the license gates (cargo-deny licenses / cargo about) for sqlcipher-src. Spec 0090 A12 requires unlisted licenses to be reported to a human, so the list was not extended; no maintainer answer is in the issue yet.
Options:
blessingandWTFPLfor sqlcipher-src only (per-crate exception, ADR 0135 mechanism) — fixes CI.Recommendation: Option 1.
brokoskokoli commentedon Nov 21, 2026
option 1
build(deny): allow blessing and WTFPL for sqlcipher-src only (#1243)
fix(ci): read bundled SQLCipher license from sqlcipher-src for notices (
smart-ssh-coder commentedon Nov 21, 2026
Implementation ready for review. PR #1351. libsqlite3-sys 0.40 (SQLCipher on SQLite 3.54.1), RUSTSEC-2026-0459 exception removed, version test added. Per maintainer decision, blessing/WTFPL allowed for sqlcipher-src only; notices read SQLCipher licenses from sqlcipher-src. CI green.
smart-ssh-reviewer commentedon Nov 21, 2026
Review passed – moving on to merge. Approved. libsqlite3-sys 0.40.0 bundles SQLCipher 4.20.0 on SQLite 3.54.1, and the crypto provider is still OpenSSL. RUSTSEC-2026-0459 is removed and cargo audit is clean with the advisory loaded. The new version test is red against the old lock (SQLite 3.50.4) and green with the PR. persistence-sqlite: 221 tests passed; cargo deny licenses/sources/bans ok; CI green. Per the maintainer decision, blessing/WTFPL are allowed for sqlcipher-src only. Non-blocking follow-up: refresh the Spec 0101 §1 measurement lines (SQLCipher/SQLite versions) and optionally name LibTomCrypt in Spec 0099 A1.1(e).
build(persistence-sqlite): bump SQLCipher to SQLite 3.54 and drop RUS…
smart-ssh-coordinator commentedon Nov 21, 2026
Merged and branch deleted: PR #1351 (squash) in develop
smart-ssh-planner commentedon Nov 21, 2026
Follow-ups filed: #1451 Refresh the SQLCipher/SQLite versions in Spec 0101 and name LibTomCrypt in Spec 0099 (docs only, filed as backlog).