GitHub Advisoryadvisory · crates.io
GHSA-7c4j-2m43-2mgh nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals
HIGH
Official page ↗
- Aliases
- CVE-2026-34065
- Ecosystem
- crates.io
- Packages
- nimiq-primitives
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-252, CWE-755
- Reviewed
- 2026-04-22
Affected packages
• crates.io nimiq-primitives: <= 0.2.0 (no fix yet)
Description
Impact
An untrusted p2p peer can cause a node to panic by announcing an election macro block whose `validators` set contains an invalid compressed BLS voting key.
Hashing an election macro header hashes `validators` and reaches `Validators::voting_keys()`, which calls `validator.voting_key.uncompress().unwrap()` and panics on invalid bytes.
Patches
The patch for this vulnerability is included as part of v1.3.0.
Workarounds
No known workarounds.
Related
Alias · CVE (1)
- CVE-2026-34065 nimiq-primitives contains primitives (e.g., block, account, transaction) to be used in Nimiq's Rust implementation. vulnerability
References
- https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-7c4j-2m43-2mgh web
- https://nvd.nist.gov/vuln/detail/CVE-2026-34065 advisory
- https://github.com/nimiq/core-rs-albatross/pull/3662 web
- https://github.com/nimiq/core-rs-albatross/commit/e10eaebcd7774e5da6d0ff5e88ed13503474f0ff web
- https://github.com/nimiq/core-rs-albatross package
- https://github.com/nimiq/core-rs-albatross/releases/tag/v1.3.0 web