Skip to main content

nDPI CVE-2026-134762

| EUVDEUVD-2026-132811 LOW
Out-of-bounds Read (CWE-125)
2026-11-22 VulnCheck GHSA-cmv5-xf87-qwwm
2.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Application drives nDPI JSON serializer
  2. Delivery
    Serializer left empty or length set to 0
  3. Exploit
    Call ndpi_serializer_get_buffer()
  4. Execution
    Unbounded strip loop / length underflow
  5. Persist
    Out-of-bounds heap read or wrapped length
  6. Impact
    Crash or adjacent-memory disclosure

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the embedding application itself to use an nDPI JSON-family serializer (ndpi_serialization_format_json, inner_json, or multiline_json) AND to call ndpi_serializer_get_buffer() while the buffer holds only spaces/NULs or has a used length of 0 - concretely: reading a not-yet-filled inner_json serializer (whose reset writes only a single space), or calling ndpi_serializer_set_buffer_len(&s, 0) before get_buffer() on a json serializer. The advisory explicitly states triggering depends on how the application drives the serializer, NOT on packet content or any attacker-controlled network input. The main LIMITING factors: it is not reachable by a remote attacker through normal traffic, it affects only applications that call these JSON serializer APIs in this specific sequence, and it requires local conditions (AV:L, AT:P) rather than default remote exposure. Applications that never read an empty JSON serializer or never set the length to 0 are not affected.

Impact

This is a genuinely low-priority issue, and the signals are internally consistent rather than conflicting. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:N) with VC:L/VI:N/VA:L yields a 2.1 Low score, and the vendor/aggregator Decision label is 'monitor' - not act_now or emergency. No EPSS score was provided and the CVE is not listed in CISA KEV, so there is no evidence of active exploitation; exploitation status is best described as a publicly available PoC existing (full working PoC with ASan reproduction is published in the GHSA advisory) but with no confirmed in-the-wild use. Critically, the advisory states the bug is triggered by how the embedding application drives the serializer, NOT by packet content or attacker-supplied network input - so despite PR:N in the vector, there is no straightforward remote-attacker path; the AV:L/AT:P combination reflects that a specific local/API-usage condition must occur. The real-world impact is a crash (DoS) or out-of-bounds read within applications that misuse the nDPI JSON serializers. This is a robustness/reliability defect more than a classic exploitable memory-corruption primitive: impact is limited to a low-confidence information leak and application crash, with no integrity impact (VI:N). Treat it as a maintenance patch, not an incident.

Exploit ScenarioDerived

An application linked against nDPI uses a JSON-family serializer (json, inner_json, or multiline_json) and calls ndpi_serializer_get_buffer() on a serializer that is empty/contains only spaces or NULs - for example a freshly reset inner_json serializer, or a json serializer after ndpi_serializer_set_buffer_len(&s, 0). The unbounded leading-byte strip loop reads past the heap buffer (SIGSEGV or ASan heap-buffer-overflow) or underflows the u_int32_t length to 4294967295, and a caller that then uses the returned length (fwrite/memcpy/send) reads far out of bounds, crashing the process or leaking adjacent heap memory. A complete, confirmed-working PoC is published in the vendor GHSA advisory.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 22, 2026

Heap out-of-bounds read and unsigned length underflow in ntop nDPI's JSON-family serializers (through 6.0) occur because ndpi_serializer_get_buffer() strips leading NUL and space bytes without bounding the loop by the used length. An embedding application that reads a not-yet-filled inner_json serializer, or that calls ndpi_serializer_set_buffer_len() with 0 before reading, either walks past the calloc'ed 256-byte buffer (SIGSEGV on non-sanitized builds) or receives a wrapped length of 4294967295 that a caller's fwrite/memcpy then uses to read far out of bounds. Triggering depends entirely on how the host application drives the serializer, not on packet content, so there is no remote attack surface; the vendor advisory ships a local reproducer, the issue is not in CISA KEV, and a fix commit is published with patched builds identified as nDPI 6.1.0-5960-2b8c298 and later.

RemediationAI

Vendor-released patch: upgrade to nDPI 6.1.0-5960-2b8c298 or later, which contains commit 05941e21d7701dd507c3aaf93d00c38cfbbc02db changing the strip loop in ndpi_serializer_get_buffer() to 'while(*buffer_len > 0 && (buf[0] '\0' || buf[0] ' '))' so the scan is bounded by the used length (advisory: https://github.com/ntop/nDPI/security/advisories/GHSA-cjvm-pg5v-f378, patch: https://github.com/ntop/nDPI/commit/05941e21d7701dd507c3aaf93d00c38cfbbc02db). Where the library cannot be rebuilt immediately, the same one-line bound can be carried as a local patch, and affected applications should avoid calling ndpi_serializer_get_buffer() on a not-yet-filled inner_json serializer and should not pass 0 to ndpi_serializer_set_buffer_len() before reading, since the returned length then wraps to 4294967295 and any fwrite/memcpy on it over-reads the heap; harnesses that must read empty serializers should validate the returned length against ndpi_serializer_get_buffer_len() before consuming the buffer. These workarounds only protect callers that adopt them - they do not change the library, and the issue is not remotely reachable, so prioritisation can follow normal release cycles rather than emergency patching.

Affected VersionsENISA

nDPI 0 ≤6.0

Affected Packages

euvd ndpi no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

nDPI is ntop's open-source deep packet inspection library, and src/lib/ndpi_serializer.c implements its buffer serializers for the json, inner_json and multiline_json formats. In ndpi_serializer_get_buffer(), a JSON-family buffer is pre-processed by advancing the pointer and decrementing the caller's length for every leading '\0' or ' ' byte, with no test against the remaining used size. That single loop produces two distinct defects: a CWE-125 heap out-of-bounds read when the buffer contains only spaces or NULs (an inner_json serializer's reset writes just a single space into the calloc'ed region, so the scan runs off the end until a non-zero byte or an unmapped page is hit), and a CWE-191 unsigned underflow because *buffer_len is a u_int32_t that wraps below zero - with a JSON serializer after ndpi_serializer_set_buffer_len(&s, 0), get_buffer() reports 4294967295 for a 256-byte buffer. The upstream fix in commit 05941e21d7701dd507c3aaf93d00c38cfbbc02db changes the loop to test *buffer_len > 0 before inspecting the byte, bounding the strip by the used length. The advisory's reproducer confirms both cases under AddressSanitizer and confirms the crash on the 6.0 release and on dev f1570f38; the flaw is a library API-contract issue rather than a parser bug reachable from network traffic.

Know when Ntop gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 2.1 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.0 MEDIUM

Trigger is a local application-usage condition not controlled by remote input (AV:L, AC:H); impact is a limited heap read disclosure (C:L) and crash (A:L) with no integrity effect (I:N).

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

ntop nDPI through 6.0 contains a heap out-of-bounds read and unsigned length underflow in ndpi_serializer_get_buffer() in src/lib/ndpi_serializer.c when stripping leading NUL and space bytes. Buffers holding only spaces or NULs, or a used length of 0 set through ndpi_serializer_set_buffer_len(), cause reads past the heap buffer or a wrapped 4294967295 length, crashing the embedding application.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Medium
widely-used DPI library (ntopng and network monitoring tools) but not universal
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Ntop

View all
CVE-2020-11939 CRITICAL POC
9.8 Apr 23

In nDPI through 3.2 Stable, the SSH protocol dissector has multiple KEXINIT integer overflows that result in a controlle

CVE-2020-15473 CRITICAL POC
9.1 Jul 01

In nDPI through 3.2, the OpenVPN dissector is vulnerable to a heap-based buffer over-read in ndpi_search_openvpn in lib/

CVE-2020-15471 CRITICAL POC
9.1 Jul 01

In nDPI through 3.2, the packet parsing code is vulnerable to a heap-based buffer over-read in ndpi_parse_packet_line_in

CVE-2014-5464 MEDIUM POC
4.3 Sep 08

Cross-site scripting (XSS) vulnerability in the nDPI traffic classification library in ntopng (aka ntop) before 1.2.1 al

CVE-2017-5473 HIGH POC
8.8 Jan 14

Cross-site request forgery (CSRF) vulnerability in ntopng through 2.4 allows remote attackers to hijack the authenticati

CVE-2021-36082 HIGH POC
8.8 Jul 01

ntop nDPI 3.4 has a stack-based buffer overflow in processClientServerHello. Rated high severity (CVSS 8.8), this vulner

CVE-2018-12520 HIGH POC
8.1 Jul 05

An issue was discovered in ntopng 3.4 before 3.4.180617. Rated high severity (CVSS 8.1), this vulnerability is remotely

CVE-2020-15476 HIGH POC
7.5 Jul 01

In nDPI through 3.2, the Oracle protocol dissector has a heap-based buffer over-read in ndpi_search_oracle in lib/protoc

CVE-2020-11940 HIGH POC
7.5 Apr 23

In nDPI through 3.2 Stable, an out-of-bounds read in concat_hash_string in ssh.c can be exploited by a network-positione

CVE-2015-8368 MEDIUM POC
6.0 Dec 17

ntopng (aka ntop) before 2.2 allows remote authenticated users to change the login context and gain privileges via the u

CVE-2020-15475 CRITICAL
9.8 Jul 01

In nDPI through 3.2, ndpi_reset_packet_line_info in lib/ndpi_main.c omits certain reinitialization, leading to a use-aft

CVE-2020-15474 CRITICAL
9.8 Jul 01

In nDPI through 3.2, there is a stack overflow in extractRDNSequence in lib/protocols/tls.c. Rated critical severity (CV

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy