Heap Buffer Overflow Vulnerability in PcapPlusPlus

pcapplusplus Updated 02 Oct 2025

Summary

15/05/2025
MEDIUM
No i
Medium
Not published

OSV-2025-368: Heap-buffer-overflow in __parse_options. Affects pcapplusplus versions >= 813f15b87f5e76a62d64360f8cbdf449c21316e4. No fix is published. 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 designed for packet capture and network analysis. It provides a rich set of features for working with network packets, making it a popular choice for developers and researchers in the field of network security. However, like many software libraries, it is susceptible to vulnerabilities that can be exploited if not addressed promptly.

Vulnerability Detail

The vulnerability identified as OSV-2025-368 is a heap buffer overflow that occurs in the __parse_options function of PcapPlusPlus. This issue can lead to potential crashes and may allow attackers to read sensitive data from memory. The vulnerability was introduced in the commit 813f15b87f5e76a62d64360f8cbdf449c21316e4 and has been reported through OSS-Fuzz, indicating its severity and the need for immediate attention.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If you cannot immediately update the package, consider implementing input validation to ensure that the data being processed does not exceed expected limits, thereby mitigating the risk of buffer overflow.

Conclusion

The heap buffer overflow vulnerability in PcapPlusPlus poses a significant risk to applications utilizing this library. It is crucial to address this issue by updating to the latest patched version or implementing workarounds to mitigate potential exploitation. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for pcapplusplus →

Share this vulnerability

FAQ

A heap buffer overflow occurs when a program writes more data to a buffer located on the heap than it can hold, potentially overwriting adjacent memory and leading to unpredictable behavior.

Exploiting this vulnerability can lead to application crashes, data corruption, or even unauthorized access to sensitive information stored in memory.

Yes, a patched version of PcapPlusPlus is available. It is recommended to update to this version as soon as possible.

You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for pcapplusplus.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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