Skip to main content

nimiq-primitives CVE-2026-54541

| EUVDEUVD-2026-77576 LOW
Uncaught Exception (CWE-248)
2026-07-16 https://github.com/nimiq/core-rs-albatross GHSA-46wq-28cx-mhw4
3.7
CVSS 3.1 · Vendor: https://github.com/nimiq/core-rs-albatross
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operate Nimiq peer node on network
  2. Delivery
    Win peer-selection race as victim's sync source
  3. Exploit
    Send crafted TrieChunk with two identical-key TrieProofNodes
  4. Execution
    Trigger unwrap panic in TrieProof::verify() before crypto check
  5. Persist
    Victim node process crashes
  6. Impact
    Node auto-restarts and re-syncs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
Exploitation Conditions

Exploitation requires two concurrent conditions: (1) the victim Nimiq node must be actively performing state synchronization - this phase occurs when a node is bootstrapping or catching up and is not continuously active on a fully-synced node; and (2) the attacker's node must be selected as the victim's designated sync peer for the current sync session, a probabilistic outcome in the P2P peer-discovery process that the attacker cannot deterministically force without controlling significant routing infrastructure. No authentication or valid cryptographic proof is required - the malformed payload triggers the panic before proof verification. The impact is further limited by the crash being transient: the node restarts automatically and re-selects a different sync peer, so sustained disruption requires the attacker to repeatedly win peer selection races. No special server-side configuration or feature flag is required beyond the node performing state sync.

Impact

The NVD-assigned CVSS 3.7 (Low) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L accurately represents real-world risk. The high attack complexity (AC:H) is well justified: the attacker must be selected as the victim's active state-sync peer at the precise moment the victim is mid-sync - a probabilistic P2P network condition that cannot be reliably forced without controlling significant peer-routing infrastructure. The availability impact is capped at Low because the resulting crash is transient; the Nimiq node restarts automatically and resumes syncing from a different peer, meaning sustained disruption requires repeated triggering. There is no confidentiality or integrity impact. No CISA KEV listing and no public POC have been identified, aligning with the low exploitation signal. The one notable risk amplifier is that the panic fires before cryptographic proof verification, meaning even a poorly-resourced attacker can construct a triggering payload without solving any cryptographic problem. However, given the niche deployment footprint of Nimiq nodes and the self-healing crash behavior, this remains a low-priority issue except for operators where continuous node availability is operationally critical.

Exploit ScenarioDerived

An attacker operates a Nimiq node and either joins the peer network naturally or exploits peer-routing to increase the probability of being selected as a victim node's state-sync peer during an active sync session. Once selected, the attacker sends a single crafted TrieChunk message where the embedded TrieProof contains two TrieProofNode entries sharing an identical key, triggering an unwrap panic in TrieProof::verify() before any cryptographic check is reached. The victim node process crashes and restarts, causing a brief availability interruption until it re-syncs from a different peer.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 16, 2026

Panic-induced denial of service in nimiq-primitives (core-rs-albatross <= 1.5.1) allows a malicious state-sync peer to crash a syncing Nimiq blockchain node by sending a crafted TrieChunk whose proof contains two TrieProofNode entries with identical keys. The panic fires in TrieProof::verify() before any cryptographic proof validation occurs, so no valid proof is required to trigger it. The crash is transient - the node restarts and re-syncs - and no public exploit has been identified at time of analysis.

RemediationAI

Upgrade core-rs-albatross to version 1.6.0, which is the vendor-released patched version confirmed via the release tag at https://github.com/nimiq/core-rs-albatross/releases/tag/v1.6.0. The fix is delivered through PR #3789 (commit 41d35ace) and eliminates the panic by enforcing strict-prefix semantics in child_index() and replacing the unsafe .unwrap() with a proper error return. The only available workaround prior to patching is to configure the node to accept state-sync connections exclusively from a known-trusted peer set, which prevents a malicious peer from acting as a sync source; this may not be feasible in fully permissionless deployments and should be treated as a temporary measure only. No other compensating controls are documented by the vendor.

Affected VersionsENISA

core-rs-albatross < 1.6.0

Affected Packages

cargo nimiq-primitives fix: 1.6.0
euvd core_rs_albatross fix: 1.6.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in cargo, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected package is pkg:rust/nimiq-primitives, part of the core-rs-albatross Nimiq proof-of-stake blockchain node written in Rust. During state synchronization, the node accepts ResponseChunk messages from a designated sync peer and processes them via commit_chunks → put_chunk → TrieProof::verify(). Inside verify(), the method TrieProofNode::child_index() at primitives/src/trie/trie_proof_node.rs:94 calls KeyNibbles::get(self.key.len()).unwrap(). The guard is_prefix_of returns true when two keys are identical (a key is trivially a prefix of itself), so when two proof nodes share the same key, execution reaches the get(len) call with an out-of-bounds index, returning None, and the unconditional .unwrap() panics. This is classified under CWE-248 (Unchecked Return Value). The patch in 1.6.0 (PR #3789, commit 41d35ace) adds a strict-prefix length check (self.key.len() == child_prefix.len() is now rejected) and replaces the .unwrap() with .ok_or(MerkleRadixTrieError::WrongPrefix), eliminating both the logical error and the panic path.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nimiq/core-rs-albatross) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 3.7 LOW

AC:H for probabilistic peer-selection requirement during active sync; A:L for transient self-healing crash only; C and I are N with no data exposure or state corruption.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nimiq/core-rs-albatross).

CVSS VectorVendor: https://github.com/nimiq/core-rs-albatross

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

DescriptionCVE.org

Impact

A malicious peer acting as a state-sync source can crash a syncing node by sending a crafted TrieChunk whose proof contains two TrieProofNodes with identical keys. TrieProof::verify() calls TrieProofNode::child_index() (primitives/src/trie/trie_proof_node.rs:94), which unconditionally unwraps KeyNibbles::get(self.key.len()). Because is_prefix_of returns true for two equal keys, execution reaches get(len), which returns None, and the unwrap() panics.

The panic is reached from untrusted network input (ResponseChunk → commit_chunks → put_chunk → proof.verify()) before any cryptographic proof verification, so the attacker does not need to produce a valid proof. Exploitation requires the attacker to be selected as the victim's sync peer while the victim is performing state sync, and the resulting crash is transient (the node restarts and re-syncs).

Affected: core-rs-albatross <= 1.5.1 (nimiq-primitives).

Patches

Fixed in 1.6.0 via https://github.com/nimiq/core-rs-albatross/pull/3789 (commit 41d35ace). child_index now rejects equal-length keys and returns MerkleRadixTrieError::WrongPrefix instead of unwrapping.

Workarounds

None other than syncing only from trusted peers. Upgrade to 1.6.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Rare
niche blockchain node project with limited enterprise production footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy