Skip to content

chore(audit): RUSTSEC-2026-0459(libsqlite3-sys)を理由つきで一時的に除外する - #562

Merged
tyaro merged 1 commit into
mainfrom
chore/audit-ignore-rustsec-2026-0459
Nov 12, 2026
Merged

tyaro merged 1 commit into
mainfrom
chore/audit-ignore-rustsec-2026-0459

Conversation

@tyaro

@tyaro tyaro commented Nov 12, 2026

Copy link
Copy Markdown
Owner

概要

2026-10-30 に出た RUSTSEC-2026-0459(libsqlite3-sys 0.30.1 が同梱する SQLite <3.54.0 の CVE-2026-119375、Medium 6.8)で、全 PR の Dependency audit が落ちています(#560・#561 で確認)。.cargo/audit.toml に理由と見直しの条件をつけて一時的に除外します。

直せない理由

  • 修正版は libsqlite3-sys >=0.39.0。最新リリースの sqlx-sqlite 0.9.0 は >=0.30.1, <0.38.0 を要求し、cargo update では 0.37.0 までしか上がらない(--precise 0.39.1 は解決に失敗)
  • sqlx の main は対応済み(Bump the upper bound on libsqlite3-sys to allow 0.39.x transact-rs/sqlx#4502、2026-11-08)だが未リリース
  • git の [patch] で main を使う案は採らない。派生アプリ(git タグで banto-* を使う側)の lockfile には届かず、未リリースの DB 層(56 コミット分)を取り込むため

影響が小さい理由

  • 攻撃には、細工したデータベースと -wal の組を開かせる必要がある(ローカル、利用者の操作が要る)
  • Banto が外から来たデータベースを開くのはリストア(管理者限定)だけ。アップロードは本体ファイルしか渡せず、新しい一時パスに書いて読み取り専用で検証する。適用時には古い -wal/-shm を消してから入れ替える(crates/banto-admin-services/src/backup.rs)

見直しの条件

libsqlite3-sys >=0.39 を受け付ける sqlx がリリースされたら、cargo update -p libsqlite3-sys で上げてこの除外を外す。

検証

  • 手元の cargo audit(0.22.2)で脆弱性 0、既存の警告 3 件のみ
  • CHANGELOG の Unreleased に追記

🤖 Generated with Claude Code

sqlx 0.9.0 の sqlx-sqlite が libsqlite3-sys を <0.38 に固定しており、修正版の
0.39 に上げられないため。sqlx の main は対応済み(transact-rs/sqlx#4502)だが
未リリース。git の [patch] は派生アプリに届かず、未リリースの DB 層を取り込む
ため採らない。影響はリストア(管理者限定)だけで、アップロードは本体ファイル
しか渡せず、適用時に古い -wal/-shm を消すので小さい。次の sqlx のリリースで
cargo update して除外を外す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T09:40:42.523150Z 71129ff PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tyaro
tyaro merged commit ecd2bbd into main Nov 12, 2026
9 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