CVE-2026-46545 — nimiq-primitives: Panic DoS in nimiq-primitives
nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.61%). Schedule for your next planned update.
Does your project use an affected nimiq-primitives version?
Paste your Cargo.lock to check it for CVE-2026-46545 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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)
Advisory Timeline
- First published May 21, 2026 (189 days ago).
- Last revised June 10, 2026 — 20 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p nimiq-primitives --precise 1.5.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| nimiq-primitives crates.io · Affected: All versions | 1.5.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-248
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-mw3q-r9wh-h2ffWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-46545ADVISORY
- https://github.com/nimiq/core-rs-albatross/pull/3762WEB
- https://github.com/nimiq/core-rs-albatross/commit/0fb8766adea91e038af00e635a6eb92756e50172WEB
- https://github.com/nimiq/core-rs-albatrossPACKAGE
- https://github.com/nimiq/core-rs-albatross/releases/tag/v1.5.0WEB
Frequently Asked Questions
- What is CVE-2026-46545?
- nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-46545?
- CVE-2026-46545 affects nimiq-primitives. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-46545 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 43.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-34065HIGH
nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution
- CVE-2026-46539MEDIUM
nimiq-primitives: BlockInclusionProof interlink issue when hops are empty