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.
https://github.com/ntop/nDPI/security/advisories/GHSA-cjvm-pg5v-f378
https://github.com/ntop/nDPI/commit/05941e21d7701dd507c3aaf93d00c38cfbbc02db
https://github.com/ntop/nDPI/blob/6.0/src/lib/ndpi_serializer.c#L422-L438
Published: 2026-11-22
Updated: 2026-11-24
Base Score: 6.4
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:P
Severity: Medium
Base Score: 4
Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
Severity: Medium
Base Score: 2.1
Vector: 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
Severity: Low
EPSS: 0.0022