Heap-buffer-overflow in pcpp::SomeIpSdLayer::SomeIpSdLayer

pcapplusplus Updated 02 Oct 2025

Summary

16/11/2023
MEDIUM
Yes i
Medium
Not published

OSV-2023-1171: Heap-buffer-overflow in pcpp::SomeIpSdLayer::SomeIpSdLayer. Affects pcapplusplus versions >= 6d156bfda910cff94b04124abdb58020b5e1c2a0, < 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

The package under scrutiny is pcapplusplus, which 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. pcapplusplus is vulnerable to a heap-buffer-overflow issue in the SomeIpSdLayer class. This class is responsible for parsing the Some/IP (Service Discovery) layer of network packets.

Vulnerability Detail

The vulnerability is a heap-buffer-overflow READ 2, which occurs in the SomeIpSdLayer constructor. It can be triggered when parsing the Some/IP layer of network packets. An attacker can craft a malicious packet that triggers the overflow, potentially leading to arbitrary code execution or a denial-of-service condition. The vulnerability was discovered through an OSS-Fuzz report and has 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.

Conclusion

In conclusion, the pcapplusplus package is vulnerable to a heap-buffer-overflow issue in the SomeIpSdLayer class. Developers should update their package to a version that includes the fix to mitigate the vulnerability. No workaround has been provided. 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.

Some/IP is a protocol used for service discovery in automotive systems. It allows components in a network to discover and communicate with each other.

A heap-buffer-overflow is a type of memory corruption vulnerability where a program writes data beyond the bounds of a dynamically allocated buffer in the heap. This can lead to memory corruption, crashes, or even arbitrary code execution.

The vulnerability was discovered through an OSS-Fuzz report. OSS-Fuzz is a continuous fuzzing service provided by Google that helps identify vulnerabilities in open-source software.

This vulnerability has 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