HIGH · CVSS 3.1 7.5

GHSA-mj2m-jxgv-r446: KVStoreInterpreter::verify_signature_legacy answers true for every token and every key

Published 2026-11-13 · Updated 2026-11-13 · Also known as RUSTSEC-2026-0529

Summary

The KVStoreInterpreter::verify_signature_legacy function in bsv-rs erroneously returns true for all inputs regardless of the provided token or key. Developers using this deprecated function must upgrade to the specified fixed versions to ensure cryptographic signatures are properly validated.

Who is affected

Applications using this function to verify KVStore tokens provided by untrusted sources, such as peer-provided transaction outputs or overlay lookups, will incorrectly accept forged or invalid tokens. This allows an attacker to bypass authentication and falsely attribute tokens to any controller, leading to potential integrity compromises. The vulnerability affects all 63 published versions of the crate prior to the fixes.

Exploitability

The vulnerability is rated as High severity with a CVSS 3.1 base score of 7.5, reflecting that it is network-exploitable with low complexity and requires no privileges or user interaction. CISA KEV data indicates no evidence of active exploitation, and EPSS data is not available.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io bsv-rs >= 0.0.0-0, < 0.8.9 0.8.9 cargo update -p bsv-rs --precise 0.8.9
crates.io bsv-rs >= 0.9.0-beta.1, < 0.9.0-beta.7.0 0.9.0-beta.7.0 cargo update -p bsv-rs --precise 0.9.0-beta.7.0

CVSS 3.1 vector

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

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityHigh
AvailabilityNone

FAQ

Is there a workaround for this issue?

No workaround is available; users must update their dependency to the provided fixed versions.

Does the crate itself use this vulnerable function?

No, the crate's internal code does not utilize this function.

What is the CWE for this vulnerability?

Not documented.

Original advisory description
`KVStoreInterpreter::verify_signature_legacy(&PushDrop, &PublicKey)`, public and deprecated since 0.2.0 (the crate's first release), read neither argument and answered `true`. A KVStore token signed by nobody, a signed token checked against a key other than its controller's, and a PushDrop with no fields each passed. Its documentation said it delegated to the `KVStoreFields`-based verifier; it did not. An application that checks, with this function, a KVStore token it did not write (an overlay lookup's answer, or a transaction output a peer hands it) and acts on `true` accepts a value no controller signed, attributed to whatever controller the token names. No caller in the crate itself uses the function. This was run on 0.2.0, 0.5.0, 0.8.0, 0.8.7, 0.8.8, 0.9.0-beta.1 and 0.9.0-beta.7 as crates.io serves them, and the source of all 63 published versions carries the same constant body (the yanked 0.3.21 included). 0.8.9 answers `true` only for a token whose controller field is the given key and whose last field is that key's signature over the others (the 0.9 line's next prerelease carries the same fix). There is no workaround: upgrade to 0.8.9, or, on the 0.9 line, to its next prerelease.

References

Source records: RUSTSEC-2026-0529 (OSV.dev).