Skip to main content

nimiq-blockchain CVE-2026-46543

MEDIUM
Reachable Assertion (CWE-617)
2026-05-21 https://github.com/nimiq/core-rs-albatross GHSA-vghx-352f-93jm
5.3
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
    Connect as Nimiq network peer
  2. Delivery
    Send RequestBatchSet with genesis block hash
  3. Exploit
    Trigger backward macro block iteration in get_epoch_chunks
  4. Execution
    Policy::macro_block_before called at genesis block number
  5. Persist
    Unconditional Rust panic
  6. Impact
    Node process crashes and drops off network

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V16 - Security Logging and Error Handling Reachable assertion handling
Exploitation Conditions

The targeted node must be running nimiq-blockchain version prior to 1.5.0 and must be reachable on the Nimiq peer-to-peer network by the attacker. The CVSS PR:N confirms no authentication is required beyond establishing a network connection as a peer. The genesis block hash that triggers the panic is a fixed, publicly known constant for the Nimiq network, requiring no discovery or brute-forcing. No non-default configuration setting is required - any unpatched full node exposed to the peer network is vulnerable by default. Limiting factors: the attacker must have network-level connectivity to the victim node's peer port; nodes isolated behind firewalls that block untrusted peer connections are not directly exposed. Repeated exploitation requires reconnecting after each crash, but this is trivially automatable.

Impact

CVSS 5.3 Medium (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) accurately reflects the network-reachable, zero-authentication, low-complexity nature of the attack but the A:L rating may understate operational impact: for a blockchain full node, a process crash causes immediate disconnection from the peer-to-peer network and requires operator intervention to restart. No EPSS score was present in the provided data, so exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog and no public exploit code has been identified. Despite the medium CVSS, real-world priority is elevated for node operators because the triggering condition - the genesis block hash - is a fixed, publicly known constant, requiring no reconnaissance, and the attack is trivially automatable (AV:N/AC:L/PR:N/UI:N). An adversary could script repeated crash-and-reconnect cycles to sustain a denial-of-service against targeted nodes or broadly disrupt network consensus participation. There is no conflict between CVSS signals and the description; all signals are consistent.

Exploit ScenarioDerived

A malicious actor connects to a target Nimiq full node as a standard network peer and sends a single RequestBatchSet protocol message with the genesis block's hash as the requested hash value. The receiving node's handler invokes get_epoch_chunks, which iterates backward through macro blocks until Policy::macro_block_before is called at the genesis block number, triggering an unconditional Rust panic that immediately terminates the node process. No public exploit code has been identified, but the attack is straightforward to implement given public disclosure of the exact message type, the fixed genesis hash value, and the panic root cause.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 21, 2026

Unauthenticated remote crash of Nimiq full nodes running nimiq-blockchain versions before 1.5.0 is achievable by any network peer sending a single crafted RequestBatchSet message referencing the genesis block hash. The node's batch set handler iterates backward through macro blocks without a lower-bound guard, causing a Rust panic in Policy::macro_block_before when iteration reaches genesis, immediately terminating the process. No CISA KEV listing and no public exploit code exist at time of analysis; however, the attack requires no authentication and trivially low complexity, posing a real availability threat to any reachable full node.

RemediationAI

Upgrade nimiq-blockchain to version 1.5.0, the vendor-released patch confirmed in the GitHub advisory (GHSA-vghx-352f-93jm) and available at https://github.com/nimiq/core-rs-albatross/releases/tag/v1.5.0. The fix is delivered via commit 8e8b0abdb1b66f5e9b25b3833879f05c173a5596 (PR #3745). The vendor confirms no software workaround exists. As a partial operational mitigation, network-layer filtering or rate-limiting of RequestBatchSet messages from untrusted or unauthenticated peers - where the node's deployment architecture permits - could reduce exposure; however, this would also impair legitimate batch sync operations and is not a substitute for patching. The vendor notes that genesis batch set requests do not occur during normal network operation, so anomaly detection or logging on this specific message type is a viable detection signal while upgrade is pending.

Affected Packages

cargo nimiq-blockchain fix: 1.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

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

Technical ContextAI · show details

The affected component is the nimiq-blockchain Rust crate (pkg:rust/nimiq-blockchain) within the Nimiq Albatross proof-of-stake consensus implementation (core-rs-albatross). The root cause is CWE-617 (Reachable Assertion): Rust's panic mechanism - invoked either via an explicit panic! or via .expect() on a Result - can be triggered by attacker-controlled input. The RequestBatchSet message handler calls get_epoch_chunks, which iterates backward through macro blocks via Policy::macro_block_before. That function unconditionally panics when called with the genesis block number, as there are no macro blocks before genesis. Additionally, two prove_num_leaves calls used .expect('Failed to prove history size') rather than proper Result propagation, meaning any failure in those paths also crashed the node process. PR #3745 applies two fixes visible in the diff: a boundary guard (if prev_macro_block_number <= Policy::genesis_block_number() { break; }) added to chain_store.rs to halt backward iteration at genesis, and conversion of .expect() calls in consensus/src/messages/handlers.rs to graceful error returns using the ? operator with the new BatchSetError::CouldntProduceHistorySizeProof variant.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Primary rating from Vendor (https://github.com/nimiq/core-rs-albatross) · only source for this CVE.

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

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

DescriptionCVE.org

Impact

A remote peer can crash any full node by sending a RequestBatchSet message containing the genesis block's hash. The handler calls get_epoch_chunks which iterates backwards through macro blocks using Policy::macro_block_before. When it reaches the genesis block number, macro_block_before panics with "No macro blocks before genesis block".

Patches

The patch for this vulnerability is formally released as part of v1.5.0.

Workarounds

No Workaround, although requesting the genesis batch set is not used during normal operation.

Resources

See PR.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Affected Products (CPE)CVE.org

pkg:rust/nimiq-blockchain

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