Summary
The ntop n2n supernode, versions 3.0 through 3.1.1, contains a stack-based buffer overflow (CWE-121). The supernode does not validate the 16-bit auth token_size value in REGISTER_SUPER_NAK datagrams.
Per the CVSS vector (9.8, critical), the attack is carried out over the network with low complexity and requires no authentication or user interaction. An attacker registers an edge in a chosen community and then sends an oversized token_size value.
This lets the attacker leak memory, including stack canaries and pointers, overwrite the return address to execute arbitrary code, or crash the supernode. The vulnerability is not listed in CISA KEV. EPSS is about 2% (81st percentile).
Who is affected
Organizations running ntop n2n supernode versions 3.0 through 3.1.1 to build peer-to-peer VPN networks.
What to do
- Inventory all n2n supernode instances and check their versions. Versions 3.0 through 3.1.1 are affected.
- No fixed version is listed in the record. Check the vendor's official advisory and the ntop/n2n GitHub repository. The fix is available as pull request #1243 and commit 854fbbe. Apply it or upgrade to a release that includes it.
- Until the fix is applied, restrict network access to the supernode UDP port to known, trusted edge IP addresses.
- Monitor supernodes for unexpected crashes and anomalous REGISTER_SUPER_NAK traffic.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-121 Stack-based Buffer Overflow
References
- github.com/ntop/n2n/pull/1243 patch
- github.com/ntop/n2n/commit/854fbbe01bbf131bf4cb88f8450d7084267668e1 patch
- github.com/ntop/n2n/blob/a6f94564f2d6aaad925254590329c274058a53e5/src/sn_utils.c#L2309-L23
- github.com/ntop/n2n/blob/a6f94564f2d6aaad925254590329c274058a53e5/src/wire.c#L649-L679
- www.vulncheck.com/advisories/ntop-n2n-3.0-through-3.1.1-stack-buffer-overflow-via-register
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Summaries are AI-written under strict rules; always check the vendor's official advisory.