PT-2026-34545 · Nimiq · Nimiq-Account
Published
2026-04-22
·
Updated
2026-04-22
·
CVE-2026-34064
CVSS v3.1
5.3
Medium
| AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
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.Fix
Integer Underflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Nimiq-Account