Repository navigation
Fix RUSTSEC-2026-0387: point patched at an installable release (0.7.6-0.7.8 yanked) - #3706
Conversation
|
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. |
607730b to
c35e850
Compare
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. |
|
Works for me, thanks. |
The
patchedset for RUSTSEC-2026-0387 (crypto-bigint) points at a version that can't be installed,.1.
patched = ">= 0.7.6"points at yanked releasescrypto-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.6gets a "failed to select a version … has been yanked" error.Verification (crates.io, 2026-12-04)
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
patchedto>= 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 auditseparately warns on yanked crates, so no one should remain on them. If the WG prefers to keep>= 0.7.6and rely on the yanked-crate warning, that is a reasonable alternative; this PR takes the installability-first position.