Description
ntop nDPI versions before 6.0 contain a heap buffer overflow vulnerability in the ndpi_json_string_escape function that writes beyond caller-supplied buffer boundaries. Attackers can trigger the overflow by supplying crafted network packet data including TLS SNI, HTTP headers, or DNS names that reach the vulnerable function, causing heap corruption.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ntop | nDPI | < 6.0 | 6.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ndpi | No fix yet | — |
| Debian 13 | ndpi | No fix yet | — |
| Debian 12 | ndpi | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ndpi | No fix yet | — |
| Ubuntu 26.04 LTS | ndpi | No fix yet | — |
| Ubuntu 24.04 LTS | ndpi | No fix yet | — |
| Ubuntu 22.04 LTS | ndpi | No fix yet | — |
| Ubuntu 20.04 LTS | ndpi | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ndpi | No fix yet | — |
| Ubuntu 16.04 LTS | ndpi | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | ntopng | 5.2.1-7 | — |
References
- Patch Commit patch
- https://github.com/ntop/nDPI product
- ndpi_json_string_escape() unbounded writes at release 5.0 technical-description
- VulnCheck Advisory: ntop nDPI before 6.0 Heap Buffer Overflow via ndpi_json_string_escape third-party-advisory