External risk intelligence

ntop n2n Supernode Stack Buffer Overflow Memory Leak and Code Execution

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-136404

The n2n supernode acts as a central discovery and relay service for peer-to-peer networks. While often deployed to facilitate connectivity, these supernodes are frequently placed in network-accessible locations to allow disparate edge clients to discover and communicate with each other, representing a commonly reachable service in this type of deployment architecture.

Buffer Overflow

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in ntop n2n supernode software could allow attackers to remotely execute code. This issue stems from a buffer overflow when handling authentication tokens, potentially leading to memory leaks and system compromise. The main concern is confirming relevance and exposure due to the critical nature of this vulnerability.

  • Unauthenticated code execution is possible.
  • Critical for network discovery and relay services.
  • Confirm if this technology is in use.

Attack Path

How an attacker could exploit the issue

An attacker can target an n2n supernode by registering an edge in a chosen community and then sending specially crafted `REGISTER_SUPER_NAK` datagrams. These datagrams contain an oversized `token_size` that triggers a stack-based buffer overflow. This overflow can lead to memory leakage and potentially arbitrary code execution on the supernode.

  • Entry Condition: Unauthenticated network access.
  • Trigger Point: Sending oversized `token_size` in `REGISTER_SUPER_NAK`.
  • Resulting Risk: Memory leak and code execution.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow remote attackers to crash the ntop n2n supernode service, potentially leading to denial of service. It may also enable attackers to leak memory contents, which could include sensitive information if the supernode process had access to it.

  • Crash the supernode service.
  • Leak memory contents.
  • Execute arbitrary code.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability impacts the ntop n2n supernode component, potentially requiring action from infrastructure teams responsible for its deployment and management, as well as security teams overseeing network-accessible services. The immediate priority is to locate all instances of the affected technology, assess their exposure and criticality, identify the specific system owners, and then develop a targeted remediation plan based on this risk assessment.

  • Infrastructure or Platform teams own resolution.
  • Verify supernode reachability and criticality.
  • Plan targeted remediation based on risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is ntop n2n supernode?

ntop n2n is a software project that creates peer-to-peer virtual private networks. The supernode component acts as a central registry and relay service that helps individual edge clients find each other and establish encrypted connections. Because it coordinates traffic flow between nodes, it serves as the essential backbone for the entire n2n community network.

What does CWE-121 mean for CVE-2026-136404?

CWE-121 refers to a stack-based buffer overflow. In this context, it means the software fails to properly check the size of data before storing it in a reserved area of memory called the stack. By sending a specific, oversized value, an attacker can overwrite adjacent memory, which can lead to the leaking of sensitive information or allow the execution of unauthorized commands.

How is this buffer overflow triggered?

An attacker triggers the vulnerability by sending a maliciously crafted REGISTER_SUPER_NAK datagram to the service. This message must contain an excessively large auth token_size. Legitimate network operations, such as standard communication between existing nodes that do not involve malformed token size parameters, do not trigger this memory corruption.

Who should be concerned about this vulnerability?

Organizations running n2n supernodes should prioritize this. Halo Surface Signal notes these services are frequently placed in network-accessible locations to facilitate broad connectivity, making them reachable to remote, unauthenticated parties. If your supernode is reachable over the internet, it is at higher risk than an instance restricted to internal traffic.

Do I need to take action if I run n2n?

Yes. Start by identifying where your n2n supernodes are deployed and confirming which versions are running. Once you have an inventory, assess the network reachability of these instances. Work with your infrastructure team to verify the security of these services and coordinate the necessary remediation steps to address the software weakness.

References