hyper-rustls 0.25 pin transitively forces rustls-webpki 0.102.x, which has unpatchable advisories (incl. one high)
メンテナーはふだん 11 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
調査の方向性
libsql/Cargo.toml の hyper 依存関係の周辺から始め、リモート/同期 HTTP クライアントとデフォルトの tls 機能を追跡します。提案されている3つの方針を比較します: hyper 1.x への移行、直接的な rustls 0.23 コネクター、または tls を opt-in にすること。解決できない rustls-webpki 依存関係が削除または回避され、デフォルト機能の互換性への影響が文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
libsql's tls feature (which is on by default) pins hyper-rustls = "0.25". That version line only ever depended on rustls 0.22, which in turn requires rustls-webpki ^0.102. Because 0.102.8 is the last release in the 0.102 line, and the relevant fixes only landed in 0.103.10 / 0.103.12 / 0.103.13, every downstream consumer of libsql inherits four rustls-webpki advisories with no reachable fix.
The chain
libsql 0.9.30 (tls, default)
-> hyper-rustls 0.25.0 (only 0.25.x release)
-> rustls 0.22.4 (last 0.22.x release)
-> rustls-webpki ^0.102 -> 0.102.8 (last 0.102.x release)
Every link is already at its ceiling, so no cargo update can resolve this.
Advisories inherited
| Advisory | Severity | Fixed in |
|---|---|---|
| GHSA-82j2-j2ch-gfr8 — DoS via panic on malformed CRL BIT STRING | high (CVSS 7.5) | 0.103.13 |
| GHSA-pwjx-qhcg-rvj4 — CRLs not authoritative by Distribution Point | medium | 0.103.10 |
| GHSA-965h-392x-2mh5 — URI name constraints incorrectly accepted | low | 0.103.12 |
| GHSA-xgp8-3hg3-c2mh — name constraints accepted for wildcard certs | low | 0.103.12 |
To be clear about impact: we assessed the two CRL ones as not reachable through libsql, since rustls only parses CRLs when they're explicitly supplied via with_crls(), and neither libsql nor hyper-rustls 0.25 ever does. So this is primarily a dependency-hygiene / compliance problem rather than an exploitable one — but it still surfaces as an unresolvable high-severity Dependabot alert in every downstream repo, which is painful for anyone under SOC2-style "no open highs" policies. We ended up having to dismiss them with written justification.
Why it isn't a one-line bump
hyper-rustls moved to rustls 0.23 (and thus webpki 0.103) in 0.26, but 0.26+ also requires hyper 1.x. libsql is still on hyper = "0.14":
https://github.com/tursodatabase/libsql/blob/main/libsql/Cargo.toml#L20-L21
So closing this properly means a hyper 0.14 → 1.x migration for the remote/sync HTTP client. Confirmed still present on main, and on 0.10.0-pre.4.
Possible options, roughly in order of effort
- Migrate to hyper 1.x + hyper-rustls 0.27. The real fix; also unblocks a lot of other modernization.
- Swap the TLS stack for
rustls0.23 directly behind libsql's own connector, decoupling from hyper-rustls' hyper requirement. - Interim mitigation — drop
tlsfromdefault. Consumers that only use local databases (Builder::new_local) currently pull the whole rustls 0.22 stack for nothing. Notablytlsis already independent:remote,sync, andreplicationdo not depend on it, so making it opt-in would be a small change that lets local-only users escape these advisories entirely. It is technically a breaking change for anyone relying on defaults for remote TLS, so it'd want a minor-version note.
Happy to put up a PR for (3) if that's a direction you'd accept — it's the one that would unblock downstream consumers soonest. (1) looks like it needs a maintainer to scope.
Environment
- libsql 0.9.30 (also verified against
mainand0.10.0-pre.4) - Discovered via Dependabot on a downstream Rust project that uses libsql only through
Builder::new_local
- 主要言語
- C
- スター
- 17.3k
- フォーク
- 562
- 平均マージ
- 10日 15時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tursodatabase/libsql のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tursodatabase/libsql#2320 ·
メンテナーはふだん 11 日以内に返信
-
`cloudflare` feature: hrana streams are never closed対応中かも @pcbeingused333 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tursodatabase/libsql#2312 ·
メンテナーはふだん 11 日以内に返信
-
bottomless: finished S3 upload tasks are never reaped, so sqld memory grows by ~10 KB per WAL batch対応中かも @pavanmanishd が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tursodatabase/libsql#2298 · コメント 1 件 ·
メンテナーはふだん 11 日以内に返信
-
Rust local Row::get_value truncates embedded NUL TEXT and panics on malformed UTF-8 (0.9.30)対応中かも @Sanjays2402 が 35 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tursodatabase/libsql#2285 ·
メンテナーはふだん 11 日以内に返信
-
libsql-ffi: broken builds under Nix on macOS対応中かも @frectonz が 85 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
tursodatabase/libsql#2275 ·
メンテナーはふだん 11 日以内に返信
tursodatabase/libsql の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JulianKemmerer/PipelineC#395 ·
-
upstream-blocked
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libretro/parallel-n64#858 ·