8000 fix(deps): move curve25519-dalek 5 to 5.1.0, and ignore RUSTSEC-2026-0620 for 4.1.3 by agent-137 · Pull Request #3880 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(deps): move curve25519-dalek 5 to 5.1.0, and ignore RUSTSEC-2026-0620 for 4.1.3 - #3880

Merged
mitodrummer merged 1 commit into
mainfrom
fix/curve25519-dalek-advisory
Nov 29, 2026
Merged

mitodrummer merged 1 commit into
mainfrom
fix/curve25519-dalek-advisory

Conversation

@agent-137
@agent-137 agent-137 commented Nov 29, 2026 •
Copy link
Copy Markdown
Member

Security ignore: needs your read. This PR adds a deny.toml ignore for RUSTSEC-2026-0620 for one copy of curve25519-dalek, 4.1.3. The advisory says: "x-only multiplication used in x25519-dalek is unaffected." (advisory, write-up)

RUSTSEC-2026-0620 is an AVX-512 backend bug: curve25519-dalek 1.1.0–5.0.0 can miscompute scalar multiplication on an attacker-chosen point. It fails cargo-deny on every PR (for example #3875). main's last green run is from before the advisory.

Change

Two copies are in Cargo.lock:

  • 5.0.0, via ed25519-dalek 3.0.0 (russh, ssh-key) and others. It moves to 5.1.0, the fix, through cargo update -p curve25519-dalek@5.0.0 --precise 5.1.0. Only Cargo.lock changes.
  • 4.1.3, via this path:
    curve25519-dalek v4.1.3
    └── x25519-dalek v2.0.1
        └── boringtun v0.7.1
            └── minimald
    
    boringtun 0.7.1 is its latest release. x25519-dalek 2 needs curve25519-dalek 4, so no bump exists on this path. deny.toml ignores the advisory, with the reason in a comment:
    • The advisory says: "x-only multiplication used in x25519-dalek is unaffected."
    • For 4.0.0–4.1.3, the advisory says that the AVX-512 backend is used only when "The crate must be compiled with nightly and the CPU it's being run on must have avx512ifma and avx512vl". Every shipped build uses the pinned stable toolchain (rust-toolchain.toml, 1.99.1). The only nightly jobs are the miri and fuzz jobs in nightly-tests, and they ship nothing.

#3879 (should-have) tracks the removal of the ignore once boringtun moves to x25519-dalek 3.

Verification

  • just deny (cargo-deny 0.22.2): advisories ok, bans ok, licenses ok, sources ok. The only advisory warning is the stale RUSTSEC-2026-0009 ignore, which was there before and is not touched.
  • The ignore is still needed after the bump. cargo-deny does not report it as "advisory was not encountered", because 4.1.3 still matches.
  • No local build, because memory is short on this host. The 5.1.0 move is a minor release inside 5.x, so CI's build and tests cover it.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA

Summary by CodeRabbit

  • Chores
    • Updated dependency advisory handling for a Rust security notice.

…0620 for 4.1.3

RUSTSEC-2026-0620 (AVX-512 backend miscomputes scalar multiplication)
fails cargo-deny on every PR. The 5.x copy moves to 5.1.0, the fix.
4.1.3 stays, via boringtun 0.7.1 -> x25519-dalek 2.0.1, and no release
of either moves it. deny.toml ignores the advisory, with the reason,
until #3879.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016CYvTvep9ZaSf5pJMB2hQA
@agent-137
agent-137 requested a review from a team as a code owner November 29, 2026 17:23
@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

@coderabbitai
coderabbitai Bot commented Nov 29, 2026 •
Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds an ignore for RUSTSEC-2026-0620 in deny.toml. Comments describe the affected curve25519-dalek versions and backends, the shipped stable-toolchain condition, the stated x25519-dalek impact, and when to remove the ignore.

Changes: Advisory Ignore Entry

Layer / File(s) Summary
Add advisory ignore
deny.toml
Adds an ignore for RUSTSEC-2026-0620. Comments describe the stated version, backend, and toolchain conditions, the x25519-dalek impact, and when to remove the ignore.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related issues

  • gominimal/minimal#3879 — This change adds the ignore entry described by the issue. It does not remove the entry under the issue’s stated condition.

Suggested reviewers: norrietaylor, mitodrummer

Merge Risk: Minimal · up to 56e5c · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title follows Conventional Commit form (fix(deps): ...) and names the two main changes: moving curve25519-dalek 5 to 5.1.0 and ignoring RUSTSEC-2026-0620 for 4.1.3. Both match the PR objectives an…
Description check Passed The description covers the change, the reason for the ignore, the dependency path, the verification steps, and the follow-up issue. It does not follow the repository template: the Summary and Testing …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title follows Conventional Commit form (fix(deps): ...) and names the two main changes: moving curve25519-dalek 5 to 5.1.0 and ignoring RUSTSEC-2026-0620 for 4.1.3. Both match the PR objectives and the raw summary. It is somewhat long at 83 characters, but it is specific and accurate.

Full details: Description check

Explanation

The description covers the change, the reason for the ignore, the dependency path, the verification steps, and the follow-up issue. It does not follow the repository template: the Summary and Testing sections are present in substance, but the headings are absent, and the Checklist items (docs updated, BREAKING CHANGE footer) are not addressed. The title also needs no change for the template's conventions, since it uses a Conventional Commit subject.

Resolution

Optional: add the template headings (Summary, Testing, Checklist). State whether docs were updated and whether a BREAKING CHANGE footer applies. The description is otherwise complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit found a note to keep,
An advisory marked for sleep.
Stable tools go hopping by,
While comments tell the reason why.
I nibble clover, then I leap!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 8d961b00-5b44-43f2-913c-1df36068d1fb
Commits

Reviewing files that changed from the base of the PR and between b58e1f5 and 56e5ca7.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 1

  • deny.toml

Included review availability: This review used your included allowance. Your plan provides up to 5 included reviews per hour; 0 remain after this review.

@minimal-foundry
minimal-foundry Bot commented Nov 29, 2026 •
Copy link
Copy Markdown
Contributor

Approved: no findings at 56e5ca7ea736.

Nothing to do.

Clobber: none.

@minimal-foundry minimal-foundry Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minimal-review — approved

Verdict APPROVE — No findings.

Panel: 3 of 3 personas ran (correctness, security, supply-chain).

@minimal-foundry minimal-foundry Bot added the review:approved minimal-review approved the current head label Nov 29, 2026
@agent-137
Copy link
Copy Markdown
Member Author

/arch-review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:approved minimal-review approved the current head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0