Skip to main content

RUSTSEC-2026-0501 — Vulnerability in bsv-rs — Advisory Details

CRITICAL

Shamir backup recovery accepts a share at x = 0, so a supplied share can substitute the recovered private key

Published November 12, 2026Updated November 12, 2026Source: OSV

Does your project use an affected bsv-rs version?

Paste your Cargo.lock to check it for RUSTSEC-2026-0501 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

KeyShares::from_backup_format (the Shamir backup share reader, public since 0.2.0, the crate's first release) accepted a share whose x coordinate is 0, and KeyShares::recover_private_key interpolates the shares at x = 0 to recover the key. At an x of 0 the interpolation answers that share's y value alone, so an attacker who supplies one share in that form — with the share's integrity tag ground to match the honest set's — chooses the recovered key outright. The non-canonical zero x = p works the same way, and a repeated x past the threshold window also passed.

An application that recovers a Shamir backup from shares it did not produce — a custodian's medium, a share pasted by hand, a set restored from another writer — could be handed the attacker's key as the recovered one. A set the crate's own writer produces never carries such a share; the door is the reader.

0.8.7 refuses such a set before interpolating (the 0.9 line's next prerelease carries the same refusal). Where upgrading is not possible, before recovering split each share on . into four fields, base58-decode the x field, and refuse the set if it decodes to zero (the one-character field 1, or a value at or above the field prime) or if two shares carry the same x.

Advisory Timeline

  • First published November 12, 2026 (14 days ago).

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update bsv-rs to 0.8.7 or later
cargo update -p bsv-rs --precise 0.8.7

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
bsv-rs crates.io · Affected: All versions0.8.7, 0.9.0-beta.7.0

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is RUSTSEC-2026-0501?
Shamir backup recovery accepts a share at x = 0, so a supplied share can substitute the recovered private key. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by RUSTSEC-2026-0501?
RUSTSEC-2026-0501 affects bsv-rs. Use GeekWala's free vulnerability scanner to check your dependencies against RUSTSEC-2026-0501 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

Also Known As

GHSA-cwxv-4866-5gq2

Related CVEs

  • CVE-2026-115893
    CRITICAL

    Wasmtime: Cranelift backend on aarch64 can jump to incorrect target on large Wasm `br_table` instruction

  • CVE-2026-69157
    CRITICAL

    Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock