Skip to main content

PcapPlusPlus EUVDEUVD-2026-40152

| CVE-2026-13590 LOW
Buffer Overflow (CWE-119)
2026-06-29 cna@vuldb.com GHSA-r3g9-96ff-r4rp
2.9
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Send crafted Modbus TCP packet with oversized length field
  2. Delivery
    Application passes packet to pcpp::ModbusLayer::getLength()
  3. Exploit
    Function uses unvalidated length in heap memory operation
  4. Execution
    Heap buffer overflow overwrites adjacent memory
  5. Impact
    Achieve limited heap corruption with partial C/I/A impact

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires that the target application uses PcapPlusPlus version 25.05 (or another version containing the vulnerable ModbusLayer::getLength implementation) and actively parses Modbus TCP protocol packets from an attacker-reachable network source. The vulnerable code path is only triggered when the library processes packets identified as Modbus; applications that do not handle Modbus traffic are not affected. The CVSS 4.0 vector (PR:N/UI:N) confirms exploitation requires no authentication and no user interaction - a remote attacker can send a crafted packet directly. The primary limiting factor is AC:H: successful exploitation that moves beyond triggering the overflow to achieving meaningful heap corruption or code execution requires precise heap layout knowledge and manipulation, making opportunistic mass exploitation unlikely. Non-default limiting factors include: the target application must be processing Modbus traffic from untrusted sources, the specific getLength() code path must be exercised, and achieving impact beyond process instability requires exploitation complexity beyond what the POC currently demonstrates.

Impact

The CVSS 4.0 base score of 2.9, combined with the E:P (proof-of-concept) supplement, accurately reflects a vulnerability that is theoretically reachable remotely but practically difficult to exploit. The AC:H rating is the dominant risk-limiting factor, requiring the attacker to engineer a specific heap state to achieve meaningful memory corruption - a non-trivial constraint that substantially raises the exploitation bar above typical mass-exploitation scenarios. The impact metrics (VC:L/VI:L/VA:L) indicate that even a successful exploit yields only limited heap corruption with no subsequent-system spillover (SC:N/SI:N/SA:N). No EPSS score was provided in the input data, and no KEV listing confirms active exploitation, meaning this is assessed as publicly available exploit code exists rather than confirmed in-the-wild abuse. For most enterprise environments, this is a low-priority vulnerability; however, ICS/SCADA operators who use PcapPlusPlus to inspect Modbus traffic on operational technology networks face elevated contextual risk, because availability disruption - even at 'low' severity - carries outsized consequences in industrial environments. The low base score should not induce complacency in those deployment contexts.

Exploit ScenarioDerived

An attacker with network access to an application passively capturing or actively parsing Modbus TCP traffic via PcapPlusPlus sends a single crafted Modbus packet in which the MBAP length field contains a value exceeding the actual packet buffer size. When the application processes this packet, pcpp::ModbusLayer::getLength() uses the unsanitized length value in a heap memory operation, writing beyond the allocated buffer boundary. A public proof-of-concept (poc.zip, https://github.com/user-attachments/files/28249048/poc.zip) demonstrates that the overflow condition is reachable; reliable control of the overflow to achieve arbitrary code execution requires additional heap shaping effort consistent with the AC:H rating.

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, unauthenticated attackers to corrupt heap memory by sending a crafted Modbus TCP packet containing a malformed length field to applications using the library's pcpp::ModbusLayer::getLength() parser. The CVSS 4.0 score of 2.9 reflects the high attack complexity (AC:H) required to exploit the flaw reliably, with impact capped at low across confidentiality, integrity, and availability. Publicly available exploit code exists (poc.zip), though no active exploitation has been confirmed by CISA KEV at time of analysis.

RemediationAI

The upstream fix is available as commit 4c90c3e3418a2b09dc82b7ca5775e9c1e22fe454 on the PcapPlusPlus GitHub repository, merged via PR #2159 (https://github.com/seladb/PcapPlusPlus/pull/2159). This is an upstream fix at the commit and pull-request level; a formally released patched version is not independently confirmed from the available data - developers must verify which tagged release incorporates this commit before deploying. Teams building against PcapPlusPlus should pin to a commit at or after 4c90c3e3418a2b09dc82b7ca5775e9c1e22fe454 until an official release is tagged. As a compensating control, applications can add a pre-parse length validation step that checks the Modbus length field against the remaining buffer size before passing packets to ModbusLayer::getLength() - this reduces the attack surface with no functional trade-off. Additionally, restricting Modbus traffic ingestion to trusted, authenticated network segments (e.g., via firewall rules limiting TCP port 502 access) will eliminate the remote attack vector entirely for environments that control their network perimeter, though this may not be feasible in passive capture deployments.

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 is an open-source, multi-platform C++ library for network packet capture and parsing built atop libpcap and WinPcap/Npcap. The affected function, pcpp::ModbusLayer::getLength(), resides in Packet++/header/ModbusLayer.h and is responsible for extracting the length field from Modbus Application Data Unit (MBAP) headers. CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) identifies the root cause: the function does not adequately validate the attacker-supplied length value against the actual packet buffer boundaries before using it in a heap memory operation, permitting an out-of-bounds write on the heap. Modbus is a serial communication protocol widely deployed over TCP (port 502) in industrial control systems (ICS) and SCADA environments. Any application that ingests untrusted Modbus traffic and relies on PcapPlusPlus for packet dissection is potentially within the attack surface. No CPE string was provided in the input data; the affected library is tracked at https://github.com/seladb/PcapPlusPlus.

Know when the next one hits your stack

  • 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:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.6 MEDIUM

Network-reachable Modbus parser requires no auth or interaction (PR:N/UI:N), but AC:H reflects the heap manipulation complexity; no scope change and only limited C/I/A impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A security flaw has been discovered in seladb PcapPlusPlus 25.05. This impacts the function pcpp::ModbusLayer::getLength in the library Packet++/header/ModbusLayer.h of the component Modbus Protocol Handler. The manipulation of the argument length results in heap-based buffer overflow. The attack can be launched remotely. A high complexity level is associated with this attack. The exploitability is said to be difficult. The exploit has been released to the public and may be used for attacks. The patch is identified as 4c90c3e3418a2b09dc82b7ca5775e9c1e22fe454. Applying a patch is advised to resolve this issue.

Threat Intelligence Overview

EPSS Score
0.4%
Top 69% exploitable
Prevalence
Low
niche C++ packet analysis library, primarily developer and ICS/research tooling
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL 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.

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