MEDIUM · CVSS 3.1 5.3

GHSA-j8hr-pjhm-6h27: Transaction readers accept trailing bytes, so a parsed transaction can carry another transaction id

Published 2026-11-10 · Updated 2026-11-12 · Also known as RUSTSEC-2026-0498, RUSTSEC-2026-0500

Summary

The bsv-rs crate fails to enforce strict parsing for transaction readers, allowing trailing bytes to be processed as valid transactions. Engineering teams utilizing the affected versions should update to the patched releases to ensure transaction integrity.

Who is affected

Affected deployments are those using Beef::merge_raw_tx or BeefTx::from_raw_tx to process raw transaction bytes. If an application passes unverified bytes to these functions, the library may incorrectly validate malformed entries or misidentify trailing bytes as valid transaction IDs, potentially impacting security verdicts and parent verification.

Exploitability

The vulnerability is rated with a CVSS 3.1 base score of 5.3 (Medium), indicating a network-accessible flaw that requires low attack complexity but results in limited integrity impact. There is currently no EPSS data available and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. 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.5 0.8.5 cargo update -p bsv-rs --precise 0.8.5
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:L/A:N

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

FAQ

Are all transaction parsing methods affected?

No. The wire readers such as Beef::from_binary, verify_stream, Transaction::from_beef, and from_atomic_beef are not affected by this flaw.

What is the primary risk of this vulnerability?

The risk is that invalid or malformed transaction data could be incorrectly treated as valid, potentially leading to incorrect validation verdicts or the acceptance of spoofed transaction IDs.

Is this vulnerability being actively exploited in the wild?

No. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
`Beef::merge_raw_tx` and `BeefTx::from_raw_tx` accept raw bytes without a `Result`. For bytes that are not exactly one transaction (a transaction followed by bytes, a cut transaction, bytes that are no transaction at all), `Beef::sort_txs`, `verify_structure`, `verify_valid` and `is_valid` could answer valid, even with no BUMP and no parent in the BEEF, and, where the entry carried a BUMP index, treat the hash of those bytes as a proven transaction id; an entry that names it as a parent was answered valid too. The wire readers (`Beef::from_binary`, `verify_stream`, `Transaction::from_beef`, `from_atomic_beef`) parse every entry and are not affected. Reaching this needs an application that passes bytes it did not parse to `merge_raw_tx` or `BeefTx::from_raw_tx` and then relies on the verdict or on the transaction the BEEF hands back. 0.8.5 refuses such an entry at all four verdict doors, with or without a BUMP index, and every entry that names it as a parent. Where upgrading is not possible, do not rely on `is_valid` or `verify_valid` alone for such an entry: check that the bytes are exactly one transaction before merging them.

References

Source records: RUSTSEC-2026-0498, RUSTSEC-2026-0500 (OSV.dev).