GHSA-7c4j-2m43-2mgh

Suggest an improvement
Source
https://github.com/advisories/GHSA-7c4j-2m43-2mgh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-7c4j-2m43-2mgh/GHSA-7c4j-2m43-2mgh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7c4j-2m43-2mgh
Aliases
Published
2026-04-22T19:19:28Z
Modified
2026-05-05T16:03:26Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-252",
        "CWE-755"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-22T19:19:28Z",
    "nvd_published_at": "2026-04-22T20:16:41Z",
    "severity": "HIGH"
}
References

Affected packages

crates.io / nimiq-primitives

Package

Name
nimiq-primitives
View open source insights on deps.dev
Purl
pkg:cargo/nimiq-primitives

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-7c4j-2m43-2mgh/GHSA-7c4j-2m43-2mgh.json"