{"id":"GHSA-mw3q-r9wh-h2ff","revision":"e21f6507c652451d8623f91ca3c663c1","records":[{"revision":"e21f6507c652451d8623f91ca3c663c1","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-mw3q-r9wh-h2ff","aliases":["CVE-2026-46545"],"title":"nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item","description":"### Impact\n\nA 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).\n\nA 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.\n\nImpacted: 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.\n\n### Patches\n\nSee [PR](https://github.com/nimiq/core-rs-albatross/pull/3762).\n\n### Workarounds\n\nThere 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.\n\n### Resources\n\n- Fix commit: (link to the merged PR commit, once merged)\n- Affected code: [`primitives/trie/src/trie.rs`](https://github.com/nimiq/core-rs-albatross/blob/albatross/primitives/trie/src/trie.rs) — `put_chunk` (around line 819) and `put_raw` (around line 351)","state":0,"publishedAt":"2026-05-21T19:50:31+00:00","modifiedAt":"2026-06-10T13:45:16.3464995+00:00","affected":[{"ecosystem":"crates.io","name":"nimiq-primitives","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.5.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-mw3q-r9wh-h2ff","https://nvd.nist.gov/vuln/detail/CVE-2026-46545","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","https://github.com/nimiq/core-rs-albatross/releases/tag/v1.5.0"],"sourceUrl":"https://github.com/advisories/GHSA-mw3q-r9wh-h2ff","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mw3q-r9wh-h2ff","identifiers":["GHSA-mw3q-r9wh-h2ff","CVE-2026-46545"]},"retained":false,"historicalAffected":[]}],"coverage":[]}