CVE-2026-34064 nimiq-account: Vesting insufficient funds error can panic

Medium 5.3 Published Updated

An attacker can crash a Nimiq node by triggering an integer underflow panic in the vesting contract logic via crafted transaction data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-34064?

CVE-2026-34064 is a medium-severity vulnerability in nimiq-account, published on 22 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

nimiq-account contains account primitives to be used in Nimiq's Rust implementation. Prior to version 1.3.0, `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. The patch for this vulnerability is included as part of v1.3.0. No known workarounds are available.

Weakness: CWE-191

Which versions are affected by CVE-2026-34064?

2 open source packages ship an affected version, including nimiq-account. It affects 1 product.

PackageAffectedFixed in
nimiq-account crates.ioAll versions to 0.2.0None
nimiq-account crates.ioAll versions to 0.2.0None

Products include Nimiq Nimiq Proof-of-Stake.

How do I fix CVE-2026-34064?

No fix has been published for CVE-2026-34064 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-34064 being exploited?

There is no known exploitation of CVE-2026-34064 in the wild and no public exploit code.

Sources

Also known as GHSA-vc34-39q2-m6q3.

Is CVE-2026-34064 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free