---
id: CVE-2026-97371
title: >-
  ntopng: Stack buffer overflow (write) in nDPI custom category detection allows
  remote code execution via crafted network packets
summary: >-
  ntopng is a web-based network traffic monitoring application. Prior to
  6.7.260721, ndpi_get_custom_category_match writes a four-byte nDPI
  protocol-category value through a pointer to the two-byte id variable in
  IpAddress::reloadBlacklist…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cvssSource: cna
cwe:
  - CWE-121
vendor: ntop
product: ntopng
affected:
  - ntopng < 6.7.260721
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-05T20:57:20.546560Z'
exploitAvailable: true
published: '2026-11-05'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:57:38.887Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-97371'
references:
  - url: 'https://github.com/ntop/ntopng/security/advisories/GHSA-26jm-9qfw-89w7'
    label: 'https://github.com/ntop/ntopng/security/advisories/GHSA-26jm-9qfw-89w7'
  - url: >-
      https://github.com/ntop/ntopng/commit/96acb6187950a6a49ca827e49973c3e0c27ea664
    label: >-
      https://github.com/ntop/ntopng/commit/96acb6187950a6a49ca827e49973c3e0c27ea664
tags:
  - cve.org
  - exploit-available
ingestedAt: '2026-11-05T22:38:31.936Z'
---

## Overview

ntopng is a web-based network traffic monitoring application. Prior to 6.7.260721, ndpi_get_custom_category_match writes a four-byte nDPI protocol-category value through a pointer to the two-byte id variable in IpAddress::reloadBlacklist in src/IpAddress.cpp during packet dissection and host initialization. A remote unauthenticated attacker on a monitored network segment can send packets that match custom-category rules, causing stack corruption and denial of service without user interaction. This issue is fixed in version 6.7.260721.

## Affected

- `ntopng < 6.7.260721`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
