Repository navigation
deps: fix cargo audit on v4.1-dev - #54
Merged
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cargo audit(thecheckstep) fails onv4.1-devwith 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
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.shpasses on all four lockfiles.checkstep (ci/docker-run-default-image.sh ci/test-checks.sh: sort, fmt, clippy, audit) passes on Linux.