CVE-2026-46545: nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item
Impact A remote, unauthenticated denial-of-service vulnerability in MerkleRadixTrie::putchunk allows any state-sync peer to crash any node performing state synchronization (freshly joining nodes and recovering nodes). A malicious peer can respond to a RequestChunk with a ResponseChunk::Chunk whose first TrieItem.key is the empty (ROOT) key.
Published May 21, 2026 · Updated Jun 10, 2026
Affected packages
nimiq-primitives
- Ecosystem
- Rust (crates.io)
- Affected
- < 1.5.0
- Fixed in
- 1.5.0
- Check
cargo tree -i nimiq-primitives
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A remote, unauthenticated denial-of-service vulnerability in MerkleRadixTrie::put_chunk allows any state-sync peer to crash any node performing state synchronization (freshly joining nodes and recovering nodes).
A malicious peer can respond to a RequestChunk with a ResponseChunk::Chunk whose first TrieItem.key is the empty (ROOT) key. The chunk passes sorting, range, and Merkle-proof validation, but when put_raw tries to store a value at the root node, it calls TrieNode::put_value(...).unwrap(), which returns Err(RootCantHaveValue) and panics, aborting the node process. The panic fires on the first malicious chunk the victim commits; no rate limit or authentication gate caps the attack.
Impacted: any node running state sync against untrusted peers — this includes fresh nodes performing initial download and existing nodes recovering from data loss. Honest nodes never construct ROOT-keyed items, so non-syncing operation is unaffected.
Patches
See PR.
Workarounds
There is no safe in-process workaround: any peer serving state-sync data can trigger the crash and the code path is not guarded by a feature flag.
Resources
- Fix commit: (link to the merged PR commit, once merged)
- Affected code: `primitives/trie/src/trie.rs` —
put_chunk(around line 819) andput_raw(around line 351)
Credited to Piravlos, Eligioo.
References
- https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-mw3q-r9wh-h2ff
- https://github.com/nimiq/core-rs-albatross/pull/3762
- https://github.com/nimiq/core-rs-albatross/commit/0fb8766adea91e038af00e635a6eb92756e50172
- https://github.com/nimiq/core-rs-albatross/releases/tag/v1.5.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-46545
- https://github.com/advisories/GHSA-mw3q-r9wh-h2ff
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-34065
nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals
high7.5No fixApr 22, 2026
