CVE-2026-34065: CWE-252: Unchecked Return Value in nimiq nimiq-primitives
nimiq-primitives contains primitives (e.g., block, account, transaction) to be used in Nimiq's Rust implementation. Prior to version 1.3.0, 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. The patch for this vulnerability is included as part of v1.3.0. No known workarounds are available.
AI Analysis
Technical Summary
The nimiq-primitives Rust library versions before 1.3.0 contain a vulnerability where an untrusted peer can trigger a panic in a node by announcing an election macro block whose validators set includes an invalid compressed BLS voting key. The panic occurs during hashing of the election macro header when the code calls unwrap() on the result of uncompressing the voting key, which fails on invalid bytes. This unchecked return value leads to a denial of service condition. The vulnerability is tracked as CVE-2026-34065 with a CVSS 3.1 score of 7.5 (high severity). The patch addressing this issue is included in version 1.3.0 of nimiq-primitives.
Potential Impact
An attacker controlling an untrusted peer in the Nimiq network can cause a node to panic and potentially crash by sending malformed election macro blocks with invalid voting keys. This results in a denial of service condition affecting availability. There is no impact on confidentiality or integrity according to the CVSS vector. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to nimiq-primitives version 1.3.0 or later, which includes a patch that properly handles invalid compressed BLS voting keys and prevents panics. No known workarounds are available. Since this is not a cloud service, remediation requires updating the affected software version.
CVE-2026-34065: CWE-252: Unchecked Return Value in nimiq nimiq-primitives
Description
nimiq-primitives contains primitives (e.g., block, account, transaction) to be used in Nimiq's Rust implementation. Prior to version 1.3.0, 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. The patch for this vulnerability is included as part of v1.3.0. No known workarounds are available.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The nimiq-primitives Rust library versions before 1.3.0 contain a vulnerability where an untrusted peer can trigger a panic in a node by announcing an election macro block whose validators set includes an invalid compressed BLS voting key. The panic occurs during hashing of the election macro header when the code calls unwrap() on the result of uncompressing the voting key, which fails on invalid bytes. This unchecked return value leads to a denial of service condition. The vulnerability is tracked as CVE-2026-34065 with a CVSS 3.1 score of 7.5 (high severity). The patch addressing this issue is included in version 1.3.0 of nimiq-primitives.
Potential Impact
An attacker controlling an untrusted peer in the Nimiq network can cause a node to panic and potentially crash by sending malformed election macro blocks with invalid voting keys. This results in a denial of service condition affecting availability. There is no impact on confidentiality or integrity according to the CVSS vector. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade to nimiq-primitives version 1.3.0 or later, which includes a patch that properly handles invalid compressed BLS voting keys and prevents panics. No known workarounds are available. Since this is not a cloud service, remediation requires updating the affected software version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-25T16:21:40.867Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e9290319fe3cd2cde955a5
Added to database: 4/22/2026, 8:01:07 PM
Last enriched: 4/22/2026, 8:16:03 PM
Last updated: 4/22/2026, 10:58:22 PM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.