Skip to content

deps: fix cargo audit on v4.1-dev - #54

Merged
nibty merged 1 commit into
v4.1-devfrom
xlt-594-v4.1-dev-audit
Nov 5, 2026
Merged

nibty merged 1 commit into
v4.1-devfrom
xlt-594-v4.1-dev-audit

Conversation

@nibty

@nibty nibty commented Nov 4, 2026

Copy link
Copy Markdown

cargo audit (the check step) fails on v4.1-dev with current RustSec advisories. Upstream stopped patching v4.1 at v4.1.2, so this backports the dependency updates that agave master and v4.4 made for the same advisories.

Change

  • Update the affected crates to the lowest fixed version in their semver range, in all four lockfiles (Cargo.lock, ci/xtask, dev-bins, programs/sbf). The main ones are quinn-proto, rustls and rustls-webpki, the webpki root crates, zstd, imbl and ctutils.
  • ci/do-audit.sh: ignore the crypto-bigint advisory (RUSTSEC-2026-0387), as upstream does in ci: ignore RUSTSEC-2026-0387 (crypto-bigint) anza-xyz/agave#16368, because no fixed version is available in range. Remove an ignore that the quinn-proto update makes stale.

The commit message lists each advisory and the upstream change it follows.

Testing

  • ci/do-audit.sh passes on all four lockfiles.
  • The check step (ci/docker-run-default-image.sh ci/test-checks.sh: sort, fmt, clippy, audit) passes on Linux.

cargo audit found 21 vulnerabilities in Cargo.lock, and more in
dev-bins, programs/sbf and ci/xtask. Upstream stopped patching v4.1 at
v4.1.2, so this backports what agave master and v4.4 did, with the
lowest fixed version in each semver range (rustc 1.95.0):

- quinn-proto 0.11.14 -> 0.11.18 (RUSTSEC-2026-0338/0339/0340/0342,
  remote panic and unbounded growth in QUIC). Same transitive set as
  upstream v4.4: rand 0.10, fastbloom 0.17, rustls-platform-verifier 0.7.
- rustls 0.23.46, rustls-webpki 0.103.16 (RUSTSEC-2026-0346..0349,
  0382; upstream anza-xyz#16320).
- webpki-root-certs 1.0.10, webpki-roots 1.0.10 and 0.26.11
  (RUSTSEC-2026-0381/0383; upstream anza-xyz#16234, anza-xyz#16321).
- ctutils 0.4.6 (RUSTSEC-2026-0385; upstream anza-xyz#16380).
- imbl 7.0.2 with imbl-sized-chunks 0.2.0 (RUSTSEC-2026-0292), which
  needs equivalent 1.0.2.
- zstd 0.13.4, zstd-safe 7.4.0, zstd-sys 2.1.2 (RUSTSEC-2026-0391,
  0398, 0403, 0410). Upstream moved to zstd 0.14; 0.13.4 is the fix in
  range.
- libz-sys 1.1.31 (RUSTSEC-2026-0418) and pulldown-cmark 0.13.6
  (RUSTSEC-2026-0414/0433), both build time only.

ci/do-audit.sh:
- Ignore RUSTSEC-2026-0387 (crypto-bigint) for the main lockfiles, from
  upstream anza-xyz#16368 (bceaf2e, Nikita
  Belenkov): only reached through k256 in the secp256k1 programs, which
  verify and recover over public data.
- Ignore RUSTSEC-2026-0387 in ci/xtask too. There it comes from
  jsonwebtoken (octocrab); xtask is a CI tool and is not shipped.
- Remove the RUSTSEC-2026-0185 ignore: quinn-proto 0.11.18 has the fix.

Checked: ci/do-audit.sh passes on all four lockfiles. The CI check step
(ci/docker-run-default-image.sh ci/test-checks.sh: sort, fmt, clippy
--deny=warnings on all four workspaces, audit) passes on Linux.
XLT-594.
@nibty
nibty merged commit 286404d into v4.1-dev Nov 5, 2026
1 check passed
@nibty
nibty deleted the xlt-594-v4.1-dev-audit branch November 5, 2026 00:29
nibty added a commit that referenced this pull request Nov 14, 2026
…dev (#57)

cargo audit fails on v4.1-dev again: three advisories reached RustSec
after #54. This updates each crate to a fixed version in its semver
range, in Cargo.lock, dev-bins and programs/sbf.

- quinn-proto 0.11.18 -> 0.11.19 (RUSTSEC-2026-0523, RUSTSEC-2026-0524).
  0524: a server can make any quinn client panic or abort with one long
  Retry token. Validators and RPC nodes are QUIC clients when they send
  and forward transactions to leaders (tpu-client-next, quic-client).
  0523: MAX_STREAM_DATA can open bidirectional streams beyond the limit.
  The dependency list of 0.11.19 is the same as 0.11.18, so only the
  version and checksum change. Upstream master and v4.5 use
  anza-quinn-proto 0.11.19-vendor.1.
- quinn-udp 0.5.x -> 0.5.16 (RUSTSEC-2026-0538, receive loop can spin
  after a truncated datagram). Upstream master uses 0.5.16. It needs
  socket2 0.6, which is already in the lockfiles.
- openssl 0.10.79 -> 0.10.81, openssl-sys 0.9.115 -> 0.9.118
  (RUSTSEC-2026-0477, AES key wrap buffer overflow). Upstream v4.4, v4.5
  and master use 0.10.81. openssl-src does not change, so the OpenSSL C
  library (3.3.1) is the same; only the Rust bindings change.

cargo update also moved hyper-util and quinn to socket2 0.6. That is not
needed, so those two edges stay on socket2 0.5.10. In dev-bins,
windows-sys 0.60 is no longer used and is removed. That changes only
Windows-target dependency edges.

Checked: cargo metadata --locked passes in all three workspaces, and
ci/do-audit.sh passes on all four lockfiles.
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