Skip to content

Fix RUSTSEC-2026-0387: point patched at an installable release (0.7.6-0.7.8 yanked) - #3706

Merged
djc merged 1 commit into
rustsec:mainfrom
Portll:fix/rustsec-2026-0387-installable-patched
Dec 4, 2026
Merged

djc merged 1 commit into
rustsec:mainfrom
Portll:fix/rustsec-2026-0387-installable-patched

Conversation

@Portll

@Portll Portll commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

The patched set for RUSTSEC-2026-0387 (crypto-bigint) points at a version that can't be installed,.

1. patched = ">= 0.7.6" points at yanked releases

crypto-bigint 0.7.6, 0.7.7 and 0.7.8 are all yanked on crates.io (yanked 2026-10-25 by tarcieri), as is 0.7.5. The first installable (non-yanked) release at or above the advisory's 0.7.6 floor is 0.7.9; 0.7.10 and 0.7.11 are also non-yanked. A user attempting to remediate by pinning =0.7.6 gets a "failed to select a version … has been yanked" error.

Verification (crates.io, 2026-12-04)

version yanked
0.7.5 true
0.7.6 true
0.7.7 true
0.7.8 true
0.7.9 false (first installable fix)
0.7.10 false
0.7.11 false

The constant-time fixes landed in 0.7.6; 0.7.6–0.7.8 were subsequently yanked for an unrelated breaking change (RustCrypto/crypto-bigint#1373), and 0.7.9 both carries that change and retains the security fixes. The fix is semantically present from 0.7.6, but 0.7.9 is the first release a user can actually resolve to.

This PR narrows patched to >= 0.7.9.

Trade-off (disclosed): this flags a lockfile pinned to 0.7.6/0.7.7/0.7.8 as vulnerable even though those contain the fix. That is acceptable — those versions are yanked and cargo audit separately warns on yanked crates, so no one should remain on them. If the WG prefers to keep >= 0.7.6 and rely on the yanked-crate warning, that is a reasonable alternative; this PR takes the installability-first position.

@Portll
Portll marked this pull request as ready for review December 3, 2026 18:25
@djc

djc commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

I don't see much value in this. The previous metadata seems correct, and this is mainly using more words. You shouldn't pin anyway.

@Portll
Portll force-pushed the fix/rustsec-2026-0387-installable-patched branch from 607730b to c35e850 Compare December 4, 2026 09:21
@Portll

Portll commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

I don't see much value in this. The previous metadata seems correct, and this is mainly using more words. You shouldn't pin anyway.

That's fair. You're right that >= 0.7.6 is the correct range, and I've dropped the extra 0.5.x/0.6.x section.

One small thing I'd still like to fix is the wording.

The advisory currently says "Upgrade to v0.7.6", but 0.7.6, 0.7.7 and 0.7.8 have all been yanked from crates.io since the advisory was written (version list). The fix itself wasn't the problem: they were pulled for an unrelated breaking change, and 0.7.9 onward still includes it.

Someone following the advisory goes to crates.io, sees 0.7.6 marked as yanked, and reasonably wonders whether the fix was pulled too, or whether they should be on it at all. Pointing them at a version they can actually use avoids that.

So I'd suggest changing just that one sentence and leaving the metadata alone:

Upgrade to v0.7.9 or later. (The fix first shipped in v0.7.6, but v0.7.6–v0.7.8 were later yanked for an unrelated breaking change.)

Otherwise, no problem, and happy to close it.

@djc
djc merged commit 8dd68b7 into rustsec:main Dec 4, 2026
1 check passed
@djc

djc commented Dec 4, 2026

Copy link
Copy Markdown
Member

Works for me, thanks.

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.

2 participants