GitHub Advisoryadvisory · crates.io

GHSA-7c4j-2m43-2mgh nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals

HIGH Published 2026-04-22 Modified 2026-04-27 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

Weakness · CWE (2)

  • CWE-252 Unchecked Return Value weakness
  • CWE-755 Improper Handling of Exceptional Conditions weakness

References