CVE-2026-46369: nimiq-blockchain: Validity store off by one error
Impact The validity store treats a transaction with stored blocknumber = X as "in window" only when X lastbn - transactionvaliditywindowblocks (strict inequality). However the protocol's Transaction::isvalidat accepts a transaction for inclusion in any block in [validitystartheight - blocksperbatch, validitystartheight + window - 1].
Published Aug 12, 2026 · Updated Oct 4, 2026
Affected packages
nimiq-blockchain
- Ecosystem
- Rust (crates.io)
- Affected
- <= 1.5.0
- Fixed in
- 1.5.1
- Check
cargo tree -i nimiq-blockchain
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The validity store treats a transaction with stored block_number = X as "in window" only when X > last_bn - transaction_validity_window_blocks (strict inequality). However the protocol's Transaction::is_valid_at accepts a transaction for inclusion in any block in [validity_start_height - blocks_per_batch, validity_start_height + window - 1]. By choosing validity_start_height = X + blocks_per_batch (the largest value still compatible with first inclusion at block X), an attacker can replay the same signed transaction in any block B such that X + window < B < validity_start_height + window, i.e., a contiguous window of blocks_per_batch - 1 blocks (59 on MainNet, ~10 minutes) during which the replay-protection check fails to flag it. The same transaction is then executed twice: the sender is debited twice, the recipient credited twice.
Patches
https://github.com/nimiq/core-rs-albatross/pull/3772
Workarounds
No known workarounds
Credited to Piravlos, viquezclaudio.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
