Skip to main content

nimiq-primitives EUVDEUVD-2026-77574

| CVE-2026-54542 LOW
Out-of-bounds Read (CWE-125)
2026-07-16 https://github.com/nimiq/core-rs-albatross GHSA-5rg2-xv9j-gv5p
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
    Position as victim's active sync peer
  2. Delivery
    Craft TrieChunk with individually-valid but combinatorially-oversized TrieNodeChild suffix
  3. Exploit
    Deliver malicious TrieChunk during state-sync protocol
  4. Execution
    Trigger out-of-bounds slice panic in KeyNibbles::Add before proof verification
  5. Persist
    Crash victim node process
  6. Impact
    Node auto-restarts and re-syncs

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker control or successfully impersonate a state-sync peer from which the victim node is actively pulling state during the blockchain sync phase - this is the non-trivial prerequisite reflected in AC:H. No valid Merkle proof is required; the panic is triggered before proof.verify() executes. The attack surface is limited to nodes in the state-sync phase; fully-synced nodes not in active state sync are not traversing this code path. The resulting crash is transient: the node process restarts and begins re-syncing from another peer, limiting the availability impact to brief interruptions unless the attacker can persistently re-inject themselves as the sync source. The CVSS vector PR:N indicates no prior authentication or credentials are required from the attacker.

Impact

The vendor-assigned CVSS 3.1 score of 3.7 (Low) accurately reflects the constrained real-world risk. AV:N confirms the attack is delivered over the network, but AC:H captures the critical prerequisite: the attacker must be positioned as the victim node's active sync peer during the state-sync phase - not a trivial network adjacency requirement in a decentralized peer-to-peer blockchain. The impact is exclusively availability (A:L, S:U), and even that is limited to a transient process crash, since the Nimiq node restarts and re-syncs automatically; sustained disruption requires repeated attack delivery. No EPSS data was supplied in the intelligence feed, and no CISA KEV listing exists, consistent with the absence of reported active exploitation. The 'Information Disclosure' tag in the source metadata is inconsistent with both the advisory description and the CVSS vector (C:N) and appears to be an automated tagging artifact - it should not factor into risk prioritization. Overall, this is a genuine but low-severity DoS affecting a niche product; patching at next maintenance cycle is appropriate for most operators.

Exploit ScenarioDerived

An attacker who controls or impersonates a sync peer for a target Nimiq node constructs a TrieChunk in which a TrieNodeChild.suffix is individually within the length <= 126 deserialization limit but, when concatenated with the parent key during put_chunk processing, pushes the combined nibble count beyond 126. When the victim node processes this message during state sync, KeyNibbles::Add indexes out of bounds before proof verification is reached, causing the Rust runtime to panic and terminate the node process. Because the crash is transient, the attacker can re-establish the sync peer relationship and repeat the packet to maintain persistent disruption.

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

Crash-inducing out-of-bounds panic in core-rs-albatross 1.5.1 and earlier allows a malicious state-sync peer to repeatedly restart a syncing Nimiq node without supplying a valid cryptographic proof. The panic fires in KeyNibbles::Add before proof.verify() is reached, meaning an unauthenticated network peer positioned as the victim's sync source can trigger the denial-of-service with a single crafted TrieChunk message. No CISA KEV listing exists and no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade to core-rs-albatross version 1.6.0, which is the vendor-confirmed fixed release available at https://github.com/nimiq/core-rs-albatross/releases/tag/v1.6.0. The patch (PR #3790, commit eabfc3e2 at https://github.com/nimiq/core-rs-albatross/pull/3790) introduces KeyNibbles::checked_add() and replaces unchecked Add calls in TrieNodeChild::key() and is_stump() with checked variants that return errors on overflow. If immediate upgrade is not feasible, the only documented workaround is to configure the node to sync exclusively from trusted, controlled peers, which reduces but does not eliminate exposure if a trusted peer is itself compromised or impersonated. No other compensating controls are identified 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 vulnerability resides in the nimiq-primitives Rust crate (CPE: pkg:rust/nimiq-primitives), part of the Nimiq blockchain's core-rs-albatross node implementation. KeyNibbles is a fixed-capacity trie key structure backed by a 63-byte array (126 nibbles maximum). The Add operator at primitives/src/key_nibbles.rs:332/:341 slices bytes[self.bytes_len()..self.bytes_len() + other.bytes_len()] without first verifying that the combined nibble count fits within capacity. Deserialization of KeyNibbles enforces only that each individual value satisfies length <= 126, leaving the combined sum unchecked. CWE-125 (Out-of-bounds Read) manifests as a Rust slice-index panic at runtime. The exploitable call chain is put_chunk → TrieNodeChild::key() → is_stump() → KeyNibbles::Add, which executes entirely before proof.verify(), so no cryptographically valid Merkle proof is needed to trigger the fault. The fix in v1.6.0 introduces KeyNibbles::checked_add() and updates both is_stump() and key() to return an error rather than call the unchecked Add operator.

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

Attacker must be positioned as a network sync peer (AC:H, PR:N); only transient availability impact with no confidentiality or integrity effect.

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:P/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 with a crafted TrieChunk whose proof contains a TrieNodeChild whose suffix, when concatenated with the parent key via KeyNibbles::Add, exceeds the fixed 63-byte backing array. Add (primitives/src/key_nibbles.rs:332 / :341) indexes bytes[self.bytes_len()..self.bytes_len() + other.bytes_len()] with no combined-length check, causing an out-of-bounds slice panic (both the even- and odd-length branches).

KeyNibbles deserialization validates only the individual length <= 126, not the combined parent + suffix length. The panic occurs at put_chunk → child.key() → is_stump() → +, i.e. before proof.verify(), so no valid proof is required. As with the related child_index issue, exploitation requires being the victim's sync peer during 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/3790 (commit eabfc3e2), which guards key-nibble concatenation against exceeding the maximum length instead of indexing out of bounds.

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 project with small node operator base
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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