CVE-2026-40094 Details
Description
nimiq-blockchain provides persistent block storage for Nimiq's Rust implementation. In versions 1.3.0 and prior, network-libp2p discovery accepts signed PeerContact updates from untrusted peers and stores them in a peer contact book, eventually leading to address book crash. A PeerContact can legally contain an empty addresses list (no intrinsic validation enforces non-empty). Later, PeerContactBook::known_peers builds an address book by taking addresses.first().expect("every peer should have at least one address"). If the attacker has inserted a signed peer contact with addresses=[], any call to get_address_book (RPC/web client) can panic and crash the node/RPC task depending on panic settings. This issue has been fixed in version 1.4.0.
A vulnerability in the Nimiq blockchain's Rust implementation, specifically in the network-libp2p discovery component, allows untrusted peers to send signed PeerContact updates that can lead to a crash of the address book. This issue is present in versions through 1.3.0. The vulnerability arises because a PeerContact can have an empty addresses list, which is not validated. When the address book is built, an empty address list can cause a panic, crashing the node or the RPC task, depending on the panic settings.
Users can upgrade to Nimiq Blockchain version 1.4.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 20, 2026CISA-ADP
Assessed May 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nimiq/core-rs-albatross/pull/3715 | [email protected] | Source CodeVendor |
| https://github.com/nimiq/core-rs-albatross/releases/tag/v1.4.0 | [email protected] | Release NotesVendor |
| https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-c45m-6x25-3cjq | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-754 | Improper Check for Unusual or Exceptional Conditions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Nimiq core-rs-albatross | <= 1.3.0 (semver) |
CPE
Remediation
| |
| Nimiq network-libp2p | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 20, 2026 | New CVE Received | [email protected] |
Volerion