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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-04-22T19:18:55.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-vc34-39q2-m6q3
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nimiq nimiq-account: < 1.3.0
- nimiq-account (crates.io): up to 0.2.0
- nimiq nimiq_proof-of-stake: before 1.3.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-vc34-39q2-m6q3> (patch, vendor-advisory, web)
- <https://github.com/nimiq/core-rs-albatross/pull/3658> (issue-tracking, patch, web)
- <https://github.com/nimiq/core-rs-albatross/commit/4d01946f0b3d6c6e31786f91cdfb3eb902908da0> (patch, web)
- <https://github.com/nimiq/core-rs-albatross/releases/tag/v1.3.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34064> (advisory)
- <https://github.com/nimiq/core-rs-albatross> (package)

## Sources

- CVE List: [CVE-2026-34064](https://www.cve.org/CVERecord?id=CVE-2026-34064), CVE Terms of Use, modified 2026-04-23
- GitHub Advisory Database: [GHSA-vc34-39q2-m6q3](https://github.com/advisories/GHSA-vc34-39q2-m6q3), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-34064](https://nvd.nist.gov/vuln/detail/CVE-2026-34064), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34064 · Whole record: https://cve.day/CVE-2026-34064.json · Rebuilt by cve.day 2026-11-25T22:59:19.348Z
