# CVE-2026-136404: ntop n2n 3.0 through 3.1.1 Stack Buffer Overflow via REGISTER_SUPER_NAK token_size


- **Severity:** Critical 9.3 (`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`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 24 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** GHSA-6m96-96jm-r9r3, UBUNTU-CVE-2026-136404

## What is CVE-2026-136404?

CVE-2026-136404 is a critical vulnerability in ntop n2n, published on 24 Nov 2026. 

### Official description

ntop n2n supernode 3.0 through 3.1.1 contains a stack-based buffer overflow vulnerability that allows remote unauthenticated attackers to leak memory and execute code by sending an untrusted 16-bit auth token_size in REGISTER_SUPER_NAK datagrams. Attackers can register an edge in a chosen community, then send an oversized token_size to leak stack canaries and pointers, overwrite the return address, or crash the supernode.

Weakness: CWE-121 (Stack-based Buffer Overflow)

## Which versions are affected by CVE-2026-136404?

1 open source package ship an affected version, including ntop/n2n.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `ntop/n2n` | GitHub | `pkg:github/ntop/n2n` | From 3.0 to 3.1.1 | None |

## How do I fix CVE-2026-136404?

No fix has been published for CVE-2026-136404 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-136404 being exploited?

There is no known exploitation of CVE-2026-136404 in the wild and no public exploit code.

Public exploit code:

- n2n before 854fbbe: wire decoders use attacker token_size/num_sn as unbounded copy lengths into fixed destinations — unauthenticated OOB write. ASan differential: stack-buffer-overflow on vuln, clean rejection on fixed (github_poc): https://github.com/googlesky/CVE-2026-136404

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-136404 and fix it if it is affected.

What it is: CVE-2026-136404 is a critical vulnerability in ntop n2n, published on 24 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-136404 in the wild and no public exploit code.

Affected packages and fixed versions:
- ntop/n2n (GitHub): affected from 3.0 up to 3.1.1; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-136404/ (Markdown: https://insights.sbomify.com/CVE-2026-136404/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-136404
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-136404
- OSV: https://osv.dev/vulnerability/CVE-2026-136404

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-136404/
Summaries are generated and may contain mistakes; the official description above is the record.
