CVE-2026-34065: nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals
Impact An untrusted p2p peer can cause a node to panic by announcing an election macro block whose validators set contains an invalid compressed BLS voting key. Hashing an election macro header hashes validators and reaches Validators::votingkeys(), which calls validator.votingkey.uncompress().unwrap() and panics on invalid bytes. Patches The patch for this vulnerability is included as part of v1.3.0.
Published Apr 22, 2026 · Updated Apr 27, 2026
Affected packages
nimiq-primitives
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.2.0
- Fixed in
- No patched version yet
- Check
cargo tree -i nimiq-primitives
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
An untrusted p2p peer can cause a node to panic by announcing an election macro block whose validators set contains an invalid compressed BLS voting key.
Hashing an election macro header hashes validators and reaches Validators::voting_keys(), which calls validator.voting_key.uncompress().unwrap() and panics on invalid bytes.
Patches
The patch for this vulnerability is included as part of v1.3.0.
Workarounds
No known workarounds.
Credited to 1seal, paberr.
References
- https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-7c4j-2m43-2mgh
- https://github.com/nimiq/core-rs-albatross/pull/3662
- https://github.com/nimiq/core-rs-albatross/commit/e10eaebcd7774e5da6d0ff5e88ed13503474f0ff
- https://nvd.nist.gov/vuln/detail/CVE-2026-34065
- https://github.com/nimiq/core-rs-albatross/releases/tag/v1.3.0
- https://github.com/advisories/GHSA-7c4j-2m43-2mgh
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
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesCVE-2026-54541
nimiq-primitives: Panic in TrieProof::verify via child_index unwrap on equal-length keys
low3.7Jul 16, 2026CVE-2026-54542
nimiq-primitives: Out-of-bounds panic in KeyNibbles::Add from oversized child suffix in a deserialized proof
low3.7Jul 16, 2026CVE-2026-46539
nimiq-primitives: BlockInclusionProof interlink issue when hops are empty
medium5.9No fixMay 21, 2026CVE-2026-46545
nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item
high7.5May 21, 2026
