Vulnerability in ndpi package: UNKNOWN READ in ndpi_strdup

ndpi Updated 02 Oct 2025

Summary

15/06/2022
N/A
Yes i
Unrated
Not published

OSV-2022-481: UNKNOWN READ in ndpi_strdup. Affects ndpi versions >= 7419cfee6407ff2dad687733da8eb27edd181ef9, < bdf54d725bb3e751b63af171e08203e3e434c587. Fixed in bdf54d725bb3e751b63af171e08203e3e434c587. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The ndpi package is an open-source library used for deep packet inspection (DPI) of network traffic. It provides functionality to analyze and classify network packets based on their content. This vulnerability affects the ndpi package and can potentially be exploited to cause a crash or execute arbitrary code.

Vulnerability Detail

The vulnerability, identified as OSV-2022-481, is an UNKNOWN READ issue in the ndpi_strdup function. This function is responsible for duplicating a string in the ndpi library. The specific cause of the vulnerability is currently unknown. However, it has been reported that the crash occurs during the processing of collected network traffic information. An attacker could potentially exploit this vulnerability to crash the application or execute arbitrary code.

How To Fix

Minimum fixed version

bdf54d725bb3e751b63af171e08203e3e434c587

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

Currently, no specific workaround has been provided for this vulnerability. It is advised to update the package to the latest version as soon as possible.

Conclusion

In conclusion, the ndpi package is vulnerable to an UNKNOWN READ issue in the ndpi_strdup function. This vulnerability can potentially lead to application crashes or arbitrary code execution. It is crucial to update the package to the latest version that includes the fix to mitigate this vulnerability. For further support on vulnerability remediation, please contact 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 (DPI) of network traffic. It provides functionality to analyze and classify network packets based on their content.

This vulnerability can potentially be exploited to crash the application or execute arbitrary code.

To fix this vulnerability, update the ndpi package to the latest version that includes the fix for this issue.

Currently, no specific workaround has been provided. It is recommended to update the package to the latest version.

You can find more information about this vulnerability in the OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48020

Related vulnerabilities

Recent vulnerabilities recorded for ndpi.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

bdf54d725bb3e751b63af171e08203e3e434c587

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