Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-34065: CWE-252: Unchecked Return Value in nimiq nimiq-primitives

0
High
VulnerabilityCVE-2026-34065cvecve-2026-34065cwe-252cwe-755
Published: Wed Apr 22 2026 (04/22/2026, 19:45:01 UTC)
Source: CVE Database V5
Vendor/Project: nimiq
Product: 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

AILast updated: 04/22/2026, 20:16:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses