Skip to content

fix(deps): update rusqlite and rustix for RustSec advisories - #130

Merged
adi0x90 merged 1 commit into
masterfrom
fix/129-rustsec-deps
Nov 12, 2026
Merged

adi0x90 merged 1 commit into
masterfrom
fix/129-rustsec-deps

Conversation

@adi0x90

@adi0x90 adi0x90 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #129

cargo audit found two RustSec advisories that Dependabot was not surfacing:

  • RUSTSEC-2026-0459 / CVE-2026-119375: libsqlite3-sys 0.30.1 (via rusqlite 0.32 bundled) bundles SQLite before 3.54.0, so a crafted database plus sibling -wal file can return uninitialized page-cache memory.
  • RUSTSEC-2026-0486: rustix 1.1.4 (via tempfile) marks unwritten bytes as initialized for zero-length xattr buffers, which is undefined behavior reachable from safe code.

The PR also unblocks release packaging, which the earlier zip 9 upgrade exposed: libbz2-rs-sys is licensed bzip2-1.0.6, and cargo-about rejected it.

Changes

  • rusqlite 0.32.1 → 0.41.1 in fat_core and fat_query, resolving libsqlite3-sys 0.39.1 with bundled SQLite ≥ 3.54.
  • rustix 1.1.4 → 1.1.6 in the lockfile.
  • Added bzip2-1.0.6 to the accepted licenses in about.toml.
  • No source or schema changes were needed; ProjectDb and the query snapshot store use the same API.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets (clean)
  • cargo test --workspace --no-fail-fast — 2114 passed, 0 failed, 1 ignored (220 targets)
  • cargo test -p firmware-analysis-toolkit --test test_kernel_profile_consistency — 4 passed
  • cargo check --workspace --all-features
  • cargo audit — 0 vulnerabilities (2 unrelated unmaintained warnings remain)
  • bash scripts/generate-third-party-licenses.sh — report generated with the new allowlist
  • python3 scripts/build-runtime-data-bundle.py --check — 33 files verified
  • python3 -m unittest discover -s tests/release -p 'test_install*.py' — 43 passed
  • git diff --check

Notes

  • The resolved libsqlite3-sys is 0.39.1, above the 0.39.0 patched floor. The bundled SQLite feature is retained so source builds do not depend on a system SQLite.
  • sqlite-wasm-rs appears in Cargo.lock through rusqlite's default features but is target-gated to wasm and is not in the native dependency tree.
  • The license allowlist entry is the permissive BSD-style bzip2 license; the generated release JSON includes its text like every other dependency.

- rusqlite 0.32 -> 0.41.1, resolving libsqlite3-sys 0.39.1 with
  bundled SQLite >= 3.54 (RUSTSEC-2026-0459 / CVE-2026-119375).
- rustix 1.1.4 -> 1.1.6 via tempfile (RUSTSEC-2026-0486, unsound
  zero-length xattr buffer handling).
- Allow the bzip2-1.0.6 license in about.toml. zip 9's bzip2 feature
  pulls libbz2-rs-sys, and release license generation rejected the
  package without this entry.

The bundled SQLite feature is retained so source builds keep using the
vendored library. No API changes were needed.

Closes #129
@adi0x90
adi0x90 force-pushed the fix/129-rustsec-deps branch from 0980d31 to ad8b1c7 Compare November 12, 2026 08:55
@adi0x90
adi0x90 merged commit 6a8acc7 into master Nov 12, 2026
19 checks passed
@adi0x90
adi0x90 deleted the fix/129-rustsec-deps branch November 12, 2026 09:11
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.

Update rusqlite and rustix for RUSTSEC-2026-0459 and RUSTSEC-2026-0486

1 participant