Heap-buffer-overflow in ndpi_workflow_process_packet
Summary
OSV-2020-40: Heap-buffer-overflow in ndpi_workflow_process_packet. Affects ndpi versions >= 10738a0ca334104377e19a1e683bd13f2451a9e2, < e9195589d29d86da1849ad0d195900e6567354cf. Fixed in e9195589d29d86da1849ad0d195900e6567354cf. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for ndpi.