Skip to main content

PcapPlusPlus CVE-2026-13587

| EUVDEUVD-2026-40134 LOW
Heap-based Buffer Overflow (CWE-122)
2026-06-29 VulDB GHSA-94c3-8cq4-gwwg
2.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft pcapng file with malicious captured_packet_length
  2. Delivery
    Deliver file to application via upload or network path
  3. Exploit
    Application invokes LightPcapNg parse_by_block_type
  4. Execution
    Heap buffer overflow triggered in parser
  5. Impact
    Application process crash (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must be built against PcapPlusPlus version 25.05 and must invoke the LightPcapNg Parser component (specifically parse_by_block_type in light_pcapng.c) to process a pcapng-format input. The attacker must be able to supply or influence the pcapng file or stream consumed by this parser - for example, via a file upload mechanism, a network capture replayed to the application, or a crafted pcapng file delivered over a shared network path. No authentication is required per the CVSS 4.0 PR:N metric. Exploitation is limited by high attack complexity (AC:H): the attacker must precisely craft the captured_packet_length value to trigger the overflow reliably. Practical exploitation is further constrained by platform heap mitigations (e.g., ASLR, guard pages) that may convert a code-execution attempt into a crash, consistent with the CVSS impact assignment of VA:L only.

Impact

The overall risk is low. The CVSS 4.0 base score of 2.9 reflects high attack complexity (AC:H) and minimal impact (VA:L only), consistent with the vulnerability description characterizing exploitation as 'difficult.' No EPSS data was provided, and no CISA KEV listing exists, meaning automated or widespread exploitation is not confirmed. The existence of a public POC (poc.zip on GitHub, reflected by E:P in the CVSS 4.0 supplemental vector) elevates practical risk modestly above theoretical - a motivated attacker has a working starting point - but AC:H limits the population of capable exploiters. The CVSS 4.0 vector assigns no confidentiality or integrity impact; although CWE-122 heap overflows can theoretically enable arbitrary code execution, the scoring here does not support that outcome, and no independent code execution claim exists in the available data. The gap between CWE classification (which implies potential RCE) and CVSS impact assignment (DoS only) is a notable inconsistency that defenders should note - impact may be underestimated or may depend on runtime mitigations (ASLR, heap guards) that constrain exploitation to a crash. Real-world priority is low unless the affected application operates in a security-sensitive context with direct exposure to untrusted pcapng input.

Exploit ScenarioDerived

An attacker crafts a pcapng file containing a packet block where the captured_packet_length field is set to a value significantly exceeding the actual packet data present. When an application built with PcapPlusPlus 25.05 opens and parses this file through the LightPcapNg Parser, parse_by_block_type uses the attacker-supplied length to copy packet data into a heap-allocated buffer, writing beyond its bounds. A public POC (poc.zip) demonstrates this crash, and the attack can be delivered remotely if the target application fetches or receives pcapng data from a network source.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 29, 2026

Heap-based buffer overflow in PcapPlusPlus 25.05 allows remote attackers to crash applications that parse attacker-controlled pcapng files via a crafted captured_packet_length value in the parse_by_block_type function of the LightPcapNg Parser. A publicly available proof-of-concept exploit (poc.zip) exists, though confirmed impact is limited to availability - application crash/denial-of-service - with no confidentiality or integrity impact indicated by the CVSS 4.0 vector. No active exploitation is confirmed, and no patch has been identified at time of analysis.

RemediationAI

No vendor-released patch has been identified at the time of analysis. The issue is tracked in GitHub issue #2149 (https://github.com/seladb/PcapPlusPlus/issues/2149) - developers and users should monitor this issue for an upstream fix and upgrade when a patched release is published. As a compensating control, applications using PcapPlusPlus should avoid parsing pcapng files or streams from untrusted sources until a fix is available; if parsing untrusted input is a core function, add a validation wrapper that enforces that captured_packet_length does not exceed the actual remaining buffer length before passing data to the LightPcapNg parser. Applications deployed in network-facing contexts that auto-parse captured traffic should consider disabling the LightPcapNg backend specifically in favor of stricter input paths. Note that adding a wrapper check may require modifications to calling code and could mask other length-handling issues elsewhere in the parser - a proper upstream patch remains the authoritative fix.

Affected VersionsENISA

PcapPlusPlus 25.05

Affected Packages

euvd pcapplusplus no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PcapPlusPlus (CPE: cpe:2.3:a:seladb:pcapplusplus:*:*:*:*:*:*:*:*) is a C++ multi-platform network packet processing library maintained by seladb on GitHub. The vulnerable component is the LightPcapNg Parser, implemented in light_pcapng.c, which reads the pcapng (PCAP Next Generation) file format - a structured binary format used for network packet captures. CWE-122 (Heap-based Buffer Overflow) occurs within parse_by_block_type when the captured_packet_length field from a pcapng block header is consumed without adequate bounds validation prior to its use in a heap memory copy operation. An attacker who controls this field value can cause the parser to write beyond the allocated heap buffer boundary. Despite CWE-122 frequently enabling code execution, the CVSS 4.0 vector's impact assignment of VA:L with VC:N/VI:N/SC:N/SI:N/SA:N suggests the exploitable outcome in practice is limited to process termination.

Know when Pcapplusplus gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.9 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 3.7 LOW

AV:N reflects potential network delivery of crafted pcapng input; AC:H due to required precise length crafting; impact limited to A:L per source CVSS 4.0 assignment with no C or I impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 29, 2026 - 16:22 NVD
MEDIUM LOW
CVSS changed
Jun 29, 2026 - 16:22 NVD
6.3 (MEDIUM) 2.9 (LOW)

DescriptionCVE.org

A vulnerability was found in seladb PcapPlusPlus 25.05. The affected element is the function parse_by_block_type of the file light_pcapng.c of the component LightPcapNg Parser. Performing a manipulation of the argument captured_packet_length results in heap-based buffer overflow. It is possible to initiate the attack remotely. The attack's complexity is rated as high. The exploitability is described as difficult. The exploit has been made public and could be used.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche C++ packet processing library, limited enterprise production footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy