Skip to main content

nimiq-account EUVDEUVD-2026-25060

| CVE-2026-34064 HIGH
Integer Underflow (CWE-191)
2026-04-22 https://github.com/nimiq/core-rs-albatross GHSA-vc34-39q2-m6q3
8.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Craft vesting contract with total_amount > transaction.value
  2. Delivery
    Submit contract creation transaction
  3. Exploit
    Broadcast outgoing transaction from vesting contract
  4. Install
    Trigger can_change_balance error handling
  5. C2
    Invoke Coin::sub with min_cap > balance
  6. Execute
    Integer underflow panic
  7. Impact
    Node crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

The attacker must be able to broadcast transactions to the Nimiq network. Exploitation requires two transaction submissions: first, a transaction creating a vesting contract with unvalidated total_amount encoding that exceeds the transaction value; second, a subsequent transaction that triggers the can_change_balance check with min_cap > balance. The vulnerability is only triggered during error handling, meaning normal vesting contract operations do not crash nodes-only when an attacker deliberately constructs the out-of-balance state. No authentication is required as any network participant can submit transactions. The flaw affects default node configurations with no special settings or features that must be enabled.

Impact

CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) indicates network-accessible remote unauthenticated exploitation with low complexity, but the assigned CVSS score of 5.3 underrepresents the impact for blockchain infrastructure. While the CIA triad shows Availability as Not Affected in the vector, the actual impact is node crash (denial of service), which represents high availability risk in a distributed consensus system where node crashes can disrupt network participation and block validation. The Integrity impact (I:L) reflects potential transaction ordering interference. No KEV or POC status provided in the input data, but the vulnerability is trivially exploitable once a vesting contract is created: any subsequent transaction affecting that contract triggers the crash. The low AC:L rating confirms straightforward exploitation without race conditions or timing dependencies. For blockchain validators and Nimiq node operators, this is a critical availability risk despite the moderate CVSS score, as coordinated exploitation could disrupt network stability.

Exploit ScenarioDerived

An attacker creates a vesting contract via a crafted transaction with 32-byte encoded data specifying total_amount greater than the transaction value (actual contract balance). When the attacker later broadcasts a transaction attempting to modify or interact with that vesting contract, the Nimiq node's mempool validator or block processor calls can_change_balance, triggering the error path that panics due to integer underflow, crashing the node.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – Apr 23, 2026

Denial of service in Nimiq's vesting contract allows remote unauthenticated attackers to crash nodes by crafting a vesting contract with total_amount exceeding the actual contract balance, then triggering a panic during error handling when min_cap > balance. The vulnerability exploits insufficient validation of vesting contract creation data and integer underflow in the Coin::sub operation, affecting all versions before 1.3.0. Active exploitation would require ability to broadcast transactions to the Nimiq network.

RemediationAI

Upgrade nimiq-account to version 1.3.0 or later, which includes the patch released via commit 4d01946f0b3d6c6e31786f91cdfb3eb902908da0 (merged in GitHub PR #3658). This patch adds validation to ensure total_amount <= actual contract balance during vesting contract creation, preventing the attacker-reachable state. For Nimiq node operators, this typically requires rebuilding the node software with the updated crate dependency and restarting the node. No workarounds are available, so patching is the only mitigation. Reference the official GitHub advisory at https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-vc34-39q2-m6q3 for update instructions specific to your deployment.

Affected VersionsENISA

nimiq-account < 1.3.0

Affected Packages

cargo nimiq-account fix: 1.3.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 vulnerability exists in the VestingContract::can_change_balance method within nimiq-account, a Rust crate used by Nimiq's blockchain node software. Vesting contracts are created with 32-byte encoded data that specifies a total_amount parameter, but this value is never validated against the actual contract balance (transaction value). When an attacker creates such a contract with total_amount > actual_balance and later attempts to trigger an outgoing transaction, the error handling path attempts to construct an AccountError::InsufficientFunds error by computing balance: self.balance - min_cap. Because min_cap > balance in the attacker-controlled state, the Coin::sub operation underflows and panics, crashing the node during mempool admission or block processing. This is a CWE-191 (Integer Underflow) flaw masked as error handling logic.

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

NVD PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

4
Severity Changed
Oct 26, 2026 - 21:23 NVD
MEDIUM HIGH
CVSS changed
Oct 26, 2026 - 21:23 NVD
5.3 (MEDIUM) 8.2 (HIGH)
Patch released
Apr 22, 2026 - 19:31 nvd
Patch available
CVE Published
Apr 22, 2026 - 19:18 nvd
MEDIUM 5.3

DescriptionNVD

Impact

VestingContract::can_change_balance returns AccountError::InsufficientFunds when new_balance < min_cap, but it constructs the error using balance: self.balance - min_cap. Coin::sub panics on underflow, so if an attacker can reach a state where min_cap > balance, the node crashes while trying to return an error.

The min_cap > balance precondition is attacker-reachable because the vesting contract creation data (32-byte format) allows encoding total_amount without validating total_amount <= transaction.value (the real contract balance). After creating such a vesting contract, the attacker can broadcast an outgoing transaction to trigger the panic during mempool admission and block processing.

Patches

The patch for this vulnerability is included as part of v1.3.0.

Workarounds

No known workarounds.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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