Repository navigation
fix: emSign CA distrust (CVE-2026-111943) + open RustSec advisories - #343
Conversation
CVE-2026-111943: - webpki-roots 1.0.2 -> 1.0.11 (RUSTSEC-2026-0381; roots embedded in wcn_node for the wss:// chain RPC link, the actual fix) - rustls-webpki 0.103.6 -> 0.103.16 (RUSTSEC-2026-0382) - alpine 3.22 -> 3.22.8 + apk upgrade (ca-certificates-bundle 20261020); scanner hygiene, the binaries don't read the OS store Other advisories, pinned to the lowest patched version with Rust 1.89: - quinn-proto 0.11.13 -> 0.11.18, rustls 0.23.31 -> 0.23.46, h2 0.4.12 -> 0.4.16, bytes 1.10.1 -> 1.11.1, time 0.3.43 -> 0.3.47, crossbeam-epoch 0.9.18 -> 0.9.20, openssl 0.10.73 -> 0.10.78, libz-sys 1.1.22 -> 1.1.31 VERSION -> 261110.0
|
Claude finished @mario-reown's task in 2m 15s —— View job PR Review: CVE-2026-111943 + RustSec AdvisoriesIssues FoundIssue 1: Non-Deterministic Dockerfile BuildsFile: Dockerfile:4 The RUN apk upgrade --no-cacheRecommendation: Pin RUN apk add --no-cache ca-certificates-bundle=20261020-r0Or document that non-deterministic builds are acceptable for this use case (e.g., always pulling latest security fixes is preferred over reproducibility). Issue 2: New Transitive Dependencies Not DocumentedFile: Cargo.lock (multiple) The PR description mentions
Additionally, some indirect version bumps occurred:
Recommendation: Document whether these transitive dependencies were reviewed for compatibility and if they introduce any new advisories. The PR description should acknowledge these changes to show they were intentionally accepted, not overlooked. Verification Completed✅ All primary security updates match PR description:
✅ Alpine base image: 3.22 → 3.22.8 ✅ VERSION: 260810.0 → 261110.0 (date-based: 2026-11-10) ✅ No external domain URLs detected (only github.com/rust-lang and github.com/WalletConnect) ✅ No static resource cache-control issues (no static resources in changed files) |
Why
A node operator (MetaMask) reported the eMudhra/emSign CA distrust, CVE-2026-111943: the private keys of some emSign intermediate certificates have leaked. They asked for a rebuild with the updated CA bundle and
rustls-webpki >= 0.103.16.The advisories:
rustls-webpkiaccepts certificate chains through the distrusted emSign intermediates. Fixed in 0.103.16.webpki-rootsshipsemSign ECC Root CA - G3. Fixed in 1.0.10.Since operators will roll a new image for this anyway, this PR also fixes the other open RustSec advisories that have semver-compatible patches. Several of them are in
quinn-protoandrustls, which handle node-to-node traffic on the public ports.Where the CVE actually applies
wss://link to the chain RPC (alloy → tokio-tungstenite). That link checks certs against the roots compiled in fromwebpki-roots, not/etc/ssl/certs. Thewebpki-rootsbump is the actual fix.Changes
Base image:
alpine:3.22→alpine:3.22.8, plusapk upgrade --no-cache.ca-certificates-bundlegoes from 20250911 (146 roots, emSign C1/C3/G1/G3) to 20261020 (118 roots, only emSign G1, matching Mozilla's store).Crates: each one is pinned with
--preciseto a version that has the fix, using the CI toolchain (1.89.0):Transitive changes that come with these bumps:
quinn-proto0.11.18 addsrand0.10.3, withrand_core0.10.1,rand_pcg0.10.2,chacha200.10.2,getrandom0.4.3,cpufeatures0.3.1 andr-efi6.0.0 (UEFI only).time0.3.47 bringstime-core0.1.6 → 0.1.8,time-macros0.2.24 → 0.2.27 andnum-conv0.1.0 → 0.2.2.openssl0.10.80 bringsopenssl-sys0.9.109 → 0.9.118.h20.4.16 drops the duplicatehashbrown0.16.0.VERSION: 261110.0
Deliberately not fixed here
alloy-dyn-abi(RUSTSEC-2025-0073, DoS when hashingTypedData): the fix pulls alloy-core 1.3 → 1.7, and wcn doesn't useTypedData.ruint(RUSTSEC-2025-0137, 2026-0220): tied to alloy, and the newest version needs Rust 1.90. Not reachable from remote input in a meaningful way.crypto-bigint0.5 (RUSTSEC-2026-0387, timing issues): comes in through alloy-signer / elliptic-curve, and the fix is in 0.7, a breaking upgrade. Worth a follow-up alloy upgrade.Testing (local, Rust 1.89.0)
cargo build --workspace --all-features, plus release builds ofwcn_nodeandwcn_db: ✅cargo test --all-features --workspace --exclude wcn_testing): ✅wcn_testing):test_suiteis flaky on main, and this PR doesn't change that. I alternated 5 runs each with a clean/tmp/wcn_db: the branch passed 1 of 5, main 2 of 5. Both fail at the same assertions:load_simulator.rs:363(hcard count off by one),:448(hscan field mismatch) and:475. These look like expiry-timing races in the load simulator. Worth a separate issue./tmp/wcn_db/<peer>and never cleans up. About 2–3G of RocksDB data per run builds up, and on a tmpfs/tmpthis eventually makes runs fail.cargo auditagainst the advisory DB as of 2026-11-10: open vulnerabilities down from 20 to the 3 crates listed above.openssl x509over the bundle: only emSign G1 remains.Follow-ups (not in this PR)
cargo-denyjob only runscheck license, and only when aCargo.tomlchanges, so security advisories are never checked. That's how 0.103.6 shipped with known advisories. A separate PR should addcheck advisorieson lockfile changes.Before merging
Check that the production RPC providers' TLS chains don't use an emSign root, e.g.
openssl s_client -connect <rpc-host>:443 -showcerts.After merge
Run the
packageworkflow with wcn-node, wcn-db and release enabled to publish261110.0, then send the tag to the operator.