Negative-size-param in pcpp::RawPacket::insertData in pcapplusplus

pcapplusplus Updated 02 Oct 2025

Summary

13/11/2023
N/A
Yes i
Unrated
Not published

OSV-2023-1146: Negative-size-param in pcpp::RawPacket::insertData. Affects pcapplusplus versions >= 0c95dfb3557644acc6a10060e48cfae1a61fc2f0, < 9fbc712003baf498635675388a79a76755446b91. Fixed in 9fbc712003baf498635675388a79a76755446b91. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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

Related vulnerabilities

Recent vulnerabilities recorded for 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 →

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