Heap-buffer-overflow in pcapplusplus: SomeIpSdEntry::SomeIpSdEntry

pcapplusplus Updated 02 Oct 2025

Summary

13/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1154: Heap-buffer-overflow in pcpp::SomeIpSdEntry::SomeIpSdEntry. Affects pcapplusplus versions >= 6a67cab6914074841ed81116ac72219ca070a44d, < 6a5cb61eba4f082f7dcd4e87031520102e1babdf. Fixed in 6a5cb61eba4f082f7dcd4e87031520102e1babdf. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

pcapplusplus is an open-source library that provides a high-level interface for capturing, parsing, and analyzing network packets. It is commonly used in network monitoring and analysis tools. The SomeIpSdEntry class in pcapplusplus is responsible for handling Service Discovery (SD) entries in the SomeIP protocol. SD entries contain information about available services on a network. Unfortunately, a heap-buffer-overflow vulnerability has been discovered in the SomeIpSdEntry constructor, which could lead to a crash or potentially allow an attacker to execute arbitrary code.

Vulnerability Detail

The vulnerability occurs due to a heap-buffer-overflow in the SomeIpSdEntry constructor. When parsing a packet, the SomeIpSdLayer calls the getEntries function, which in turn invokes the SomeIpSdEntry constructor. By crafting a malicious packet, an attacker can trigger a heap-buffer-overflow, leading to a crash or potential code execution. The vulnerability has been assigned a medium severity rating.

How To Fix

Minimum fixed version

6a5cb61eba4f082f7dcd4e87031520102e1babdf

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

No workaround has been provided for this vulnerability. It is recommended to apply the fix as soon as possible.

Conclusion

In conclusion, pcapplusplus is vulnerable to a heap-buffer-overflow in the SomeIpSdEntry constructor. This vulnerability can result in a crash or potential code execution. To mitigate the risk, it is crucial to update the pcapplusplus library to the fixed version. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pcapplusplus →

Share this vulnerability

FAQ

pcapplusplus is an open-source library for capturing, parsing, and analyzing network packets.

The SomeIpSdEntry class in pcapplusplus handles Service Discovery (SD) entries in the SomeIP protocol.

A heap-buffer-overflow is a type of memory corruption vulnerability where data is written beyond the bounds of a heap-allocated buffer.

The vulnerability could lead to a crash of the affected application or potentially allow an attacker to execute arbitrary code.

The vulnerability has been assigned a medium severity rating.

Related vulnerabilities

Recent vulnerabilities recorded for pcapplusplus.

How To Fix

Minimum fixed version

6a5cb61eba4f082f7dcd4e87031520102e1babdf

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