CVE-2026-97371

ntopng: Stack buffer overflow (write) in nDPI custom category detection allows remote code execution via crafted network packets

Published Nov 5, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A stack buffer overflow occurs in the ndpi_get_custom_category_match function within ntopng when it writes a four‑byte protocol‑category value to a two‑byte identifier variable in IpAddress::reloadBlacklist. The overflow corrupts the stack during packet dissection and host initialization, which can be triggered by an unauthenticated attacker who sends crafted packets that match custom‑category rules. The immediate consequence is service disruption; the vulnerability does not provide arbitrary code execution but can crash ntopng and deny its monitoring functionality.

Affected Systems

The vulnerability affects ntop’s ntopng product on any installation running a version older than 6.7.260721. No specific patch levels are identified beyond the quoted version update, and the vulnerability is present in all prior releases of ntopng that include the described packet‑processing code.

Risk and Exploitability

The CVSS score is 5.3, indicating a moderate risk primarily because the flaw is exploitable over an unauthenticated network connection. The EPSS score is not available, and the issue is not listed in CISA’s KEV catalog. Exploitation requires the attacker to be able to inject packets into the monitored network segment; remote traffic matching custom‑category rules can trigger the overflow and cause a denial of service. Because the flaw does not grant arbitrary code execution, the threat surface is limited to service interruption, but the exposed network can still be disrupted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ntopng to version 6.7.260721 or later, which contains the fix for the over‑write in ndpi_get_custom_category_match.
  • If an upgrade cannot be performed immediately, isolate ntopng on a separate network segment or strengthen firewall rules to restrict traffic to the monitoring host, thereby preventing malicious packets from reaching the packet‑dissection code.
  • Disable or limit custom‑category rules that are not essential to reduce the attack surface, as the overflow is triggered by packets that match these rules.

Generated by OpenCVE AI on November 5, 2026 at 17:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ntop
Ntop ntopng
Vendors & Products Ntop
Ntop ntopng
Type Values Removed Values Added
Description 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.
Title ntopng: Stack buffer overflow (write) in nDPI custom category detection allows remote code execution via crafted network packets
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 8:57 PM
Reserved
Sep 24, 2026, 2:16 PM
Status
Deferred
Published
Nov 5, 2026, 5:18 PM
Modified
Nov 5, 2026, 9:18 PM