{"id":"CVE-2026-46545","aliases":["CVE-2026-46545","GHSA-mw3q-r9wh-h2ff"],"related":[],"kind":"vulnerability","state":"published","title":"nimiq-primitives: Panic DoS in trie chunk processing via ROOT-keyed item","summary":"Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.5.0, 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). This issue has been patched in version 1.5.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Nimiq is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. Prior to version 1.5.0, 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). This issue has been patched in version 1.5.0.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Nimiq es una implementación en Rust del protocolo Nimiq Proof-of-Stake basado en el algoritmo de consenso Albatross. Antes de la versión 1.5.0, una vulnerabilidad remota y no autenticada de denegación de servicio en MerkleRadixTrie::put_chunk permite a cualquier par de sincronización de estado bloquear cualquier nodo que realice la sincronización de estado (nodos que se unen por primera vez y nodos en recuperación). Este problema ha sido parcheado en la versión 1.5.0.","source":"nvd"}],"published":"2026-05-21T19:50:31.000Z","modified":"2026-07-23T09:10:00.113Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 1.5.0","status":"affected"}],"vendor":"nimiq","product":"core-rs-albatross","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.0"}],"ecosystem":"crates.io","package":"nimiq-primitives","purl":"pkg:cargo/nimiq-primitives","source":"ghsa"}],"references":[{"url":"https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-mw3q-r9wh-h2ff","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nimiq/core-rs-albatross/pull/3762","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nimiq/core-rs-albatross/releases/tag/v1.5.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46545","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nimiq/core-rs-albatross/commit/0fb8766adea91e038af00e635a6eb92756e50172","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nimiq/core-rs-albatross","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-10T14:37:39.248Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46545","url":"https://www.cve.org/CVERecord?id=CVE-2026-46545","licence":"CVE Terms of Use","modified":"2026-06-10T14:38:24.123Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mw3q-r9wh-h2ff","url":"https://github.com/advisories/GHSA-mw3q-r9wh-h2ff","licence":"CC-BY-4.0","modified":"2026-06-10T13:45:16.346Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46545","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46545","licence":"Public domain","modified":"2026-07-23T09:10:00.113Z"}],"updatedAt":"2026-11-25T22:59:24.301Z","epss":{"score":0.00339,"percentile":0.29302,"date":"2026-12-01T12:00:22.000Z"}}