Summary
The ntop n2n supernode, versions 3.0 through 3.1.1, contains a stack-based buffer overflow that lets remote unauthenticated attackers leak memory and execute code. The CVSS 4.0 score is 9.3 (critical severity).
What happened
The n2n supernode trusts an unvalidated 16-bit authentication token_size value received in REGISTER_SUPER_NAK datagrams. According to the description, an attacker can register an edge in a chosen community and then send an oversized token_size. This can leak stack canaries and pointers, overwrite the return address, or crash the supernode. The weakness is classified as CWE-121 (stack-based buffer overflow).
Why it matters
The attack can be carried out remotely without authentication and could lead to code execution or a service crash. The CVSS 4.0 score is 9.3, with vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, assigned by VulnCheck (CNA). Severity is listed as critical. CISA's KEV catalog does not list this vulnerability as exploited, and the source does not state active exploitation.
Affected products and versions
ntop n2n (supernode), versions >= 3.0 and <= 3.1.1.
| Product | Versions | Fixed in |
|---|---|---|
| ntop n2n | >= 3.0, <= 3.1.1 | — |
Action recommended by the source
The source does not state a fixed version. The references include a pull request (https://github.com/ntop/n2n/pull/1243) and a commit (https://github.com/ntop/n2n/commit/854fbbe01bbf131bf4cb88f8450d7084267668e1) tagged as patches, plus a VulnCheck advisory. Readers are advised to consult those sources for the status of the fix.
Sources and references
- https://github.com/ntop/n2n/pull/1243 — CVE Program
- https://github.com/ntop/n2n/commit/854fbbe01bbf131bf4cb88f8450d7084267668e1 — CVE Program
- https://github.com/ntop/n2n/blob/a6f94564f2d6aaad925254590329c274058a53e5/src/sn_utils.c#L2309-L2344 — CVE Program
- https://github.com/ntop/n2n/blob/a6f94564f2d6aaad925254590329c274058a53e5/src/wire.c#L649-L679 — CVE Program
- https://www.vulncheck.com/advisories/ntop-n2n-3.0-through-3.1.1-stack-buffer-overflow-via-register-super-nak-token-size — CVE Program
Weaknesses (CWE): CWE-121
Relevant change history
Published
Advisory published.