LOW 3.7

CVE-2026-13587: PcapPlusPlus 25.05 Heap Buffer Overflow in LightPcapNg Parser

A heap-based buffer overflow vulnerability exists in PcapPlusPlus version 25.05, specifically in the LightPcapNg parser component. An attacker can manipulate a packet length parameter during parsing to trigger memory corruption on systems processing crafted pcapng files. While exploits are publicly available, the attack requires significant complexity and special conditions to execute successfully. The vulnerability carries a low CVSS severity rating due to limited direct impact potential.

Source data · NVD / CISA · public domain

CVSS
3.1 · 3.7 LOW · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses (CWE)
CWE-119, CWE-122
Affected products
0 configuration(s)
Published / Modified
2026-06-29 / 2026-06-29

NVD description (verbatim)

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.

7 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-13587 is a heap-based buffer overflow in the parse_by_block_type function within light_pcapng.c of seladb's PcapPlusPlus 25.05. The vulnerability stems from inadequate bounds checking when processing the captured_packet_length argument, allowing an attacker to write beyond allocated heap memory. The vulnerability maps to CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-122 (Heap-based Buffer Overflow), indicating classic memory safety issues in C-based packet parsing logic. Network-based exploitation is possible, though attack complexity is rated high due to preconditions required for successful triggering.

Business impact

Organizations deploying PcapPlusPlus for packet capture analysis, network monitoring, or security appliance functionality may face service disruption or denial of availability. The low severity rating reflects the absence of confirmed confidentiality or integrity impact; however, exploitation could crash processing daemons that parse untrusted pcapng files. This is particularly relevant for security tools, network TAP systems, and incident response platforms that ingest packet captures from potentially adversarial sources or untrusted network segments.

Affected systems

PcapPlusPlus version 25.05 is confirmed affected. The vulnerability resides in the LightPcapNg parser component, meaning any application or service using this library to parse pcapng-format packet captures is in scope. Users should verify their dependency versions and check whether downstream projects embedding PcapPlusPlus have incorporated vulnerable code paths. Typically this includes network analysis tools, packet capture utilities, and security monitoring solutions.

Exploitability

Public exploits exist, reducing the barrier to discovery and experimentation. However, the CVSS vector (AC:H) and the stated 'difficult' exploitability rating indicate that successful exploitation requires either precise packet crafting or specific runtime conditions. An attacker must craft a malicious pcapng file with a manipulated captured_packet_length value and ensure it is processed by a vulnerable parser instance. Network-based delivery is possible if the target system accepts remote packet capture files or processes network traffic through vulnerable code paths.

Remediation

Upgrade PcapPlusPlus to a patched version beyond 25.05. Verify the vendor's release notes and security advisory for the specific version that resolves parse_by_block_type bounds checking. Until patching is feasible, implement network segmentation to restrict which systems and users can supply pcapng files to PcapPlusPlus-based tools, and monitor for unexpected parser crashes or memory errors in applications using the library.

Patch guidance

Contact the seladb project or check the PcapPlusPlus GitHub repository for available updates addressing CVE-2026-13587. Patches should include hardened bounds validation in the parse_by_block_type function and verification of captured_packet_length against actual heap allocation sizes. Apply patches to all systems running PcapPlusPlus 25.05, prioritizing those in security-critical or high-availability roles. Test patched versions in non-production environments before full rollout to ensure compatibility with existing packet capture workflows.

Detection guidance

Monitor application logs and system debuggers for heap corruption errors, segmentation faults, or unexpected terminations in processes using PcapPlusPlus. Network-based detection is challenging because the attack surface is a specific parser function; however, anomalous pcapng files with unusually large or inconsistent captured_packet_length values relative to actual block data could trigger alerting. Implement file-level inspection of incoming pcapng captures and correlate parser crashes with recent untrusted file submissions. Consider sandboxing packet parsing operations to contain potential heap overflow impacts.

Why prioritize this

Although CVSS severity is low (3.7), prioritization depends on deployment context. Systems that process untrusted or adversary-supplied pcapng files should patch promptly because public exploits exist and could enable denial-of-service attacks. However, closed environments where packet capture files originate only from trusted internal sources face lower immediate risk. Organizations running PcapPlusPlus in security appliances, honeypots, or automated malware analysis pipelines should treat this as higher priority due to exposure to adversarial payloads.

Risk score, explained

The CVSS 3.1 score of 3.7 (LOW) reflects a network-accessible vulnerability with no confidentiality or integrity impact, only potential availability loss via denial of service. Attack complexity is high, meaning successful exploitation is not trivial. The score does not account for the existence of public exploits or the specific operational risk of environments ingesting untrusted packet data; those factors should elevate practical priority even though the technical severity rating remains low.

Frequently asked questions

Can this vulnerability lead to remote code execution?

No. The current understanding limits impact to denial of service (process crash) via heap corruption. There is no confirmed path to arbitrary code execution, though heap overflows in C applications merit careful analysis. Verify the vendor advisory and any public exploit disclosures to confirm the threat model.

Do all users of PcapPlusPlus need to patch immediately?

Users processing untrusted or externally sourced pcapng files should prioritize patching. Internal environments where packet captures are generated and consumed entirely within trusted boundaries face lower risk. Assess your file sources and supplier relationships before determining urgency.

How can we detect if our systems are vulnerable?

Check your PcapPlusPlus version against 25.05 in application binaries, dependency manifests, or vendor package managers. Look for any downstream tools or security appliances that embed PcapPlusPlus and verify their current version. Publicly available exploits may help you test in a controlled sandbox, though running them against production is not recommended.

What should we do if we cannot patch immediately?

Implement access controls to restrict who and what systems can supply pcapng files to PcapPlusPlus-based tools. Use network segmentation and sandboxing for packet parsing operations. Monitor for parser crashes and enable detailed logging to detect anomalous activity. Plan a phased patching schedule and test patches in pre-production as soon as they become available.

This analysis is based on publicly available vulnerability data as of the publication date. CVSS scores, affected versions, and patch availability reflect the ground-truth source data provided and may evolve as vendors release updates. Organizations should verify patch availability and compatibility with their specific deployments by consulting the official seladb PcapPlusPlus repository and security advisories. No exploit code or weaponized proof-of-concept is provided herein. Testing of any security findings should occur only in controlled, authorized environments. Source: NVD (public-domain), retrieved 2026-08-08. Analysis generated by SEC.co (claude-haiku-4-5).