Skip to content

Move curve25519-dalek to 5.1.0 and allow RUSTSEC-2026-0620 on 4.1.3 - #46

Merged
lobbystack merged 2 commits into
mainfrom
fix/curve25519-advisory
Dec 1, 2026
Merged

lobbystack merged 2 commits into
mainfrom
fix/curve25519-advisory

Conversation

@lobbystack

@lobbystack lobbystack commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

RustSec published RUSTSEC-2026-0620 on 2026-11-29, and cargo deny check now fails the dependency-audit job on main. The bug sits in curve25519-dalek's AVX-512 backend: it can compute wrong scalar multiplications on an attacker-chosen point. The advisory covers 1.1.0 through 5.0.0.

Changes

  • The workspace's 5.x copy moves to 5.1.0, which fixes the bug. It comes through ed25519-dalek 3, x25519-dalek 3 and passkey. The lockfile diff touches only curve25519-dalek.
  • account-web's THIRD_PARTY_NOTICES.txt names curve25519-dalek 5.1.0 and adds the copyright line for The Beneficial AI Foundation that 5.1.0's BSD license gained.
  • deny.toml ignores the advisory for the copies that stay behind:
    • 4.1.3 has no fixed release. age 0.11 needs x25519-dalek 2, and local-core and sync-key-envelope pin ed25519-dalek 2.2. 4.1.x builds the AVX-512 backend only on a nightly rustc, and every build uses the stable toolchain in rust-toolchain.toml.
    • The collaboration sandbox's guest and fuzz lockfiles keep 5.0.0. Moving the guest's crates would change the module that sync-v2-collaboration.json pins by hash. 5.0.0 builds the backend only under a cfg or target feature that no build sets, and the guest targets wasm32.

Checks run locally

  • cargo deny check
  • scripts/check-collab-sandbox.sh audit
  • scripts/check-sync-protocol.sh
  • cargo check -p account-web --target wasm32-unknown-unknown
  • cargo test -p sync-protocol -p sync-key-envelope -p account-web

RustSec published RUSTSEC-2026-0620 on 2026-11-29. curve25519-dalek's
AVX-512 backend can compute wrong scalar multiplications on an
attacker-chosen point. The advisory covers 1.1.0 through 5.0.0, so
cargo deny failed the dependency-audit job on main.

The workspace's 5.x copy, through ed25519-dalek 3 and x25519-dalek 3,
moves to 5.1.0, which fixes the bug. The lockfile change touches only
curve25519-dalek.

4.1.3 has no fixed release. age 0.11 needs x25519-dalek 2, and
local-core and sync-key-envelope pin ed25519-dalek 2.2, so it stays.
4.1.x builds the AVX-512 backend only on a nightly rustc, and every
build uses the stable toolchain in rust-toolchain.toml, so deny.toml
now ignores the advisory with that reason.

The collaboration sandbox's guest and fuzz lockfiles keep 5.0.0:
moving the guest's crates would change the module that
sync-v2-collaboration.json pins by hash. 5.0.0 builds the backend
only under a cfg or target feature that no build sets, and the guest
targets wasm32.
account-web's notice must name the curve25519-dalek release that
Cargo.lock pins, and its notices test failed on 5.0.0. 5.1.0's license
also adds a copyright line for The Beneficial AI Foundation, which the
BSD license asks binaries to reproduce, so the notice now carries it.
@lobbystack
lobbystack merged commit 9c3ae50 into main Dec 1, 2026
40 checks passed
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