{"cve":"CVE-2026-34064","nvd":{"published":"2026-04-22T20:16:40.900","modified":"2026-10-26T21:10:00.170","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","score":8.2},"cwes":["CWE-191"],"references":["https://github.com/nimiq/core-rs-albatross/commit/4d01946f0b3d6c6e31786f91cdfb3eb902908da0","https://github.com/nimiq/core-rs-albatross/pull/3658","https://github.com/nimiq/core-rs-albatross/releases/tag/v1.3.0","https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-vc34-39q2-m6q3"],"products":["nimiq:nimiq_proof-of-stake"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-34064","score":0.00275,"percentile":0.19692,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-vc34-39q2-m6q3","url":"https://osv.dev/vulnerability/GHSA-vc34-39q2-m6q3","summary":"nimiq-account: Vesting insufficient funds error can panic","modified":"2026-05-05T16:11:14.359484Z","packages":[{"ecosystem":"crates.io","name":"nimiq-account","purl":"pkg:cargo/nimiq-account","ranges":["<=0.2.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}