Skip to content

chore(deps): resolve quinn-proto, rustls, and ruzstd RustSec advisories - #2397

Merged
storopoli merged 3 commits into
mainfrom
t3code/upgrade-quinn-proto
Oct 14, 2026
Merged

storopoli merged 3 commits into
mainfrom
t3code/upgrade-quinn-proto

Conversation

@storopoli

@storopoli storopoli commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Description

Clears every vulnerability cargo audit currently reports, which also fails on main now that the new advisories have reached the advisory database:

Crate Change Advisories
quinn-proto 0.11.16 → 0.11.19 RUSTSEC-2026-0341
rustls 0.23.45 → 0.23.46 RUSTSEC-2026-0346, 0347, 0348, 0349
ruzstd ignored in .cargo/audit.toml RUSTSEC-2026-0344

There is one commit per crate.

quinn-proto. In 0.11.15 and 0.11.16, the cap on buffered stream-reassembly chunks is only checked on the defragmentation path, so a remote peer can bypass it with small gapped STREAM frames and pin roughly 3 GB of receiver memory. Fixed in 0.11.17. The resolver picked 0.11.19, the newest release that passes the 14-day min-publish-age cooldown.

rustls. 0.23.46 fixes four advisories published on 2026-10-14: a 1 GiB allocation through Brotli certificate decompression (0348), a ServerHello downgrade to classical key exchange (0349), buffered data sent to the outer server after ECH rejection (0347), and Debug impls exposing TLS secrets (0346).

ruzstd. 0.8.3 has a decompression bomb, fixed in 0.9.1. The lockfile cannot pick up that fix. ruzstd comes in only through object 0.37.3, which sp1-core-executor 6.8.1 depends on with default features, turning on object's compression feature. No SP1 release, up to 6.9.0, moves to object 0.40, the first version on ruzstd 0.9. This PR adds the advisory to the .cargo/audit.toml ignore list, which both cargo audit runs in security.yml read, with the reasoning and the removal condition next to the entry.

The lockfile bumps change only each crate's version and checksum; no dependency lists change.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature/Enhancement (non-breaking change which adds functionality or enhances an existing one)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor
  • New or updated tests
  • Dependency Update

Notes to Reviewers

Reachability. Two of the three vulnerable paths are not reachable in our builds:

  • quinn is an optional reqwest dependency behind the http3 feature. No workspace crate enables it, and cargo tree -i quinn-proto --all-features -e all --target all finds no path to it, so quinn-proto is never compiled. It is still recorded in Cargo.lock, which is what cargo audit scans.
  • ruzstd is compiled into SP1-feature builds, but no code in the dependency graph decompresses zstd data with it. object has two dependents. sp1-core-executor uses it only to write ELF files (src/minimal/debug.rs). backtrace reads ELF with its own code, and its zstd path is gated on its own ruzstd feature, which is off.
  • rustls is compiled into every build. RUSTSEC-2026-0348 needs the non-default brotli feature, which cargo tree -e features shows no crate enabling. I did not check our exposure to the other three rustls advisories; the bump fixes them regardless.

Cooldown override for rustls. rustls 0.23.46 was published on 2026-10-14, inside the 14-day cooldown, so its commit used the override documented in .cargo/config.toml:

CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo update -p rustls --precise 0.23.46

Why ignore ruzstd instead of patching. object 0.37.3 compiles unchanged against ruzstd 0.9.1, so the alternative was a [patch.crates-io] entry for object, from an alpenlabs/object fork or a vendored copy (about 52k lines). We chose the ignore entry over maintaining a fork of object for a code path nothing calls.

The SP1 checkpoint guest lockfile (provers/sp1/guest-checkpoint/Cargo.lock) contains none of these crates.

Is this PR addressing any specification, design doc or external reference document?

  • Yes
  • No

If yes, please add relevant links:

Checklist

  • I have performed a self-review of my code.
  • I have commented my code where necessary.
  • I have updated the documentation if needed.
  • My changes do not introduce new warnings.
  • I have added (where necessary) tests that prove my changes are effective or that my feature works.
  • New and existing tests pass with my changes.
  • I have disclosed my use of AI in the body of this PR.

Local checks: cargo metadata --locked resolves, cargo check -p rustls -p tokio-rustls -p hyper-rustls --locked builds against rustls 0.23.46, and taplo fmt --check passes on .cargo/audit.toml. cargo audit, unit tests, and functional tests are left to CI.

AI assistance: Claude Code ran the cargo update commands, traced the dependency paths and feature sets, wrote the audit.toml entry, and drafted this PR description.

Related Issues

Fixes RUSTSEC-2026-0341, RUSTSEC-2026-0346, RUSTSEC-2026-0347, RUSTSEC-2026-0348, and RUSTSEC-2026-0349. Ignores RUSTSEC-2026-0344 until SP1 moves to object >= 0.40.

quinn-proto 0.11.15 and 0.11.16 let a remote peer bypass the stream
reassembly chunk cap with small gapped STREAM frames and pin gigabytes
of receiver memory. 0.11.17 fixes it; 0.11.19 is the newest release
the 14-day publish-age cooldown allows.

quinn is an optional reqwest dependency behind the `http3` feature,
which no workspace crate enables, so the crate is never compiled. It
still appears in Cargo.lock, where `cargo audit` reports it.
@storopoli
storopoli requested a review from purusang as a code owner October 14, 2026 13:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T14:00:57.182162Z 7cb86ee New commits
🔒 Security Review ✅ Completed 2026-10-14T14:02:30.874779Z 7cb86ee New commits
ℹ️ 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.

@github-actions

Copy link
Copy Markdown
Contributor

🔒 AI Security Review (claude-opus-5-5)

✅ No security issues found.

rustls 0.23.9 through 0.23.45 let a peer force a 1 GiB allocation
through the Brotli certificate decompressor before authentication.
0.23.46 fixes it.

Only the non-default `brotli` feature is affected, and no workspace
crate enables it, but `cargo audit` flags the locked version.

0.23.46 was published on 2026-10-14, inside the 14-day publish-age
cooldown, so this resolve used the documented one-off override
`CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow`.
@storopoli storopoli changed the title chore(deps): bump quinn-proto to 0.11.19 (RUSTSEC-2026-0341) chore(deps): bump quinn-proto and rustls for RustSec advisories Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔒 AI Security Review (claude-opus-5-5)

✅ No security issues found.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa927bbe37

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Cargo.lock
ruzstd 0.8.3 has a decompression bomb, fixed in 0.9.1. It comes in only
through object 0.37.3, which sp1-core-executor 6.8.1 depends on with
default features, enabling object's `compression` feature. No SP1
release, up to 6.9.0, moves to object 0.40, the first version on ruzstd
0.9, so no lockfile update can fix it.

No code in the dependency graph decompresses zstd data:
sp1-core-executor uses object only to write ELF files, and backtrace
leaves its own `ruzstd` feature off. The ignore entry records the
reasoning and when to remove it.
@storopoli
storopoli requested a review from prajwolrg as a code owner October 14, 2026 13:57
@storopoli storopoli changed the title chore(deps): bump quinn-proto and rustls for RustSec advisories chore(deps): resolve quinn-proto, rustls, and ruzstd RustSec advisories Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔒 AI Security Review (claude-opus-5-5)

✅ No security issues found.

@storopoli
storopoli merged commit 2435e3d into main Oct 14, 2026
24 checks passed
@storopoli
storopoli deleted the t3code/upgrade-quinn-proto branch October 14, 2026 14:04
@github-actions

Copy link
Copy Markdown
Contributor

Commit: 1acfd95
Baseline: #2392 (000502a)
SP1 Execution Results

program cycles gas Δ cycles Δ gas
Checkpoint 2,782,155 3,212,830 0 (0.0%) 0 (0.0%)

@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.11%. Comparing base (29301ea) to head (7cb86ee).
⚠️ Report is 2 commits behind head on main.

@@            Coverage Diff             @@
##             main    #2397      +/-   ##
==========================================
- Coverage   89.11%   89.11%   -0.01%     
==========================================
  Files         441      441              
  Lines       75737    75737              
==========================================
- Hits        67495    67493       -2     
- Misses       8242     8244       +2     
Flag Coverage Δ
functional 58.85% <ø> (-0.04%) ⬇️
unit 81.73% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@storopoli storopoli mentioned this pull request Oct 14, 2026
8 of 16 tasks
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