Advisory

GHSA-799f-29jm-gr6c

Also known as: CVE-2026-46539

Summary

nimiq-primitives: BlockInclusionProof interlink issue when hops are empty

Details

Impact
A logic flaw in BlockInclusionProof::is_block_proven causes the function to return true without performing any cryptographic verification when get_interlink_hops yields an empty hop list. This occurs when the target block is at the election block position immediately preceding the election head's epoch. An attacker providing transaction inclusion proofs can forge a MacroBlock header for that epoch position and have it accepted as "proven" without any hash or signature verification.

Patches
The patch for this vulnerability is formally released as part of v1.4.0.

Workarounds
No Workarounds

Resources
See PR.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-21 19:38 UTC
Modified
2026-06-10 13:45 UTC

Affected packages and fixes

nimiq-primitives

crates.io · All systems

Affected

  • introduced 0, last affected 0.2.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences