Negative-size-param in pcpp::RawPacket::insertData in pcapplusplus
Summary
OSV-2023-1146: Negative-size-param in pcpp::RawPacket::insertData. Affects pcapplusplus versions >= 0c95dfb3557644acc6a10060e48cfae1a61fc2f0, < 9fbc712003baf498635675388a79a76755446b91. Fixed in 9fbc712003baf498635675388a79a76755446b91. 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
pcapplusplus is an open-source C++ library for capturing, parsing, and crafting network packets. It provides a high-level API for working with network packets and supports various protocols. The library is widely used in network monitoring and analysis tools. However, a vulnerability has been discovered in the library that could potentially lead to crashes or other security issues.
Vulnerability Detail
The vulnerability, identified as OSV-2023-1146, is a negative-size-param issue in the pcpp::RawPacket::insertData function. This vulnerability can be triggered when processing network packets with specific characteristics. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code on a vulnerable system. The vulnerability was reported through the OSS-Fuzz project and has been fixed in the latest version of pcapplusplus.
How To Fix
Minimum fixed version
9fbc712003baf498635675388a79a76755446b91
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 known workaround for this vulnerability. It is recommended to update to the latest version of pcapplusplus as soon as possible.
Conclusion
The negative-size-param vulnerability in pcapplusplus can lead to crashes or other security issues. It is crucial for users of the library to update to the latest version that includes the fix for this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for pcapplusplus →
FAQ
pcapplusplus is an open-source C++ library for capturing, parsing, and crafting network packets. It provides a high-level API for working with network packets and supports various protocols.
This vulnerability could potentially lead to crashes or other security issues. An attacker could exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code on a vulnerable system.
This vulnerability was discovered through the OSS-Fuzz project, which performs continuous fuzz testing on open-source software.
Yes, this vulnerability has been fixed in the latest version of pcapplusplus. Users should update to the fixed version to mitigate the risk.
More information about this vulnerability can be found in the OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64111
References
Related vulnerabilities
Recent vulnerabilities recorded for pcapplusplus.