Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted Modbus TCP packet with oversized length field
-
DeliveryApplication passes packet to pcpp::ModbusLayer::getLength()
-
ExploitFunction uses unvalidated length in heap memory operation
-
ExecutionHeap buffer overflow overwrites adjacent memory
-
ImpactAchieve 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 |
| 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, |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-40152
GHSA-r3g9-96ff-r4rp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB