Heap-buffer-overflow in ndpi_workflow_process_packet

ndpi Updated 02 Oct 2025

Summary

24/06/2020
MEDIUM
Yes i
Medium
Not published

OSV-2020-40: Heap-buffer-overflow in ndpi_workflow_process_packet. Affects ndpi versions >= 10738a0ca334104377e19a1e683bd13f2451a9e2, < e9195589d29d86da1849ad0d195900e6567354cf. Fixed in e9195589d29d86da1849ad0d195900e6567354cf. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The ndpi package is an open-source library for deep packet inspection. It is used to identify network protocols and applications by analyzing packet payloads. This vulnerability affects the ndpi package and can lead to a heap-buffer-overflow when processing packets.

Vulnerability Detail

The vulnerability originates in the ndpi_workflow_process_packet function. It is a heap-buffer-overflow read 2 issue, which can result in a crash. The specific crash state occurs in the fuzz_ndpi_reader.c file. The severity of this vulnerability is classified as MEDIUM. The vulnerability was reported through the OSS-Fuzz project, and more details can be found in the provided OSS-Fuzz report link. If exploited, this vulnerability could potentially lead to remote code execution or denial of service.

How To Fix

Minimum fixed version

e9195589d29d86da1849ad0d195900e6567354cf

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to apply the fix by updating the ndpi package to a patched version.

Conclusion

In conclusion, the ndpi package is vulnerable to a heap-buffer-overflow issue. It is crucial to update the package to a version that includes the fix to mitigate the risk of potential exploitation. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for ndpi →

Share this vulnerability

FAQ

The ndpi package is an open-source library used for deep packet inspection. It helps identify network protocols and applications by analyzing packet payloads.

A heap-buffer-overflow vulnerability occurs when a program writes data beyond the allocated buffer in the heap. This can lead to memory corruption and potentially enable an attacker to execute arbitrary code or cause a crash.

If this vulnerability is successfully exploited, an attacker could potentially execute arbitrary code on the affected system or cause a denial of service by crashing the application.

Yes, a fix has been implemented in the nDPI GitHub repository. It is recommended to update the ndpi package to a version that includes the fix.

You can find more information about this vulnerability in the provided OSS-Fuzz report link and the associated GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for ndpi.

How To Fix

Minimum fixed version

e9195589d29d86da1849ad0d195900e6567354cf

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback