CVE-2026-13590

seladb PcapPlusPlus Modbus Protocol ModbusLayer.h getLength heap-based overflow

Published Jun 29, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A buffer overflow exists in the pcpp::ModbusLayer::getLength function of the Modbus protocol handler in PcapPlusPlus. Manipulating the length argument causes a heap‑based overflow, potentially allowing an attacker to overwrite memory and gain arbitrary code execution. The flaw is triggered by remote network traffic and the vulnerability is classified as high complexity and difficult to exploit, yet public exploit code has already been released.

Affected Systems

seladb PcapPlusPlus 25.05 is affected. The flaw resides in the ModbusLayer.h component of the library. Installing the patch identified by commit 4c90c3e3418a2b09dc82b7ca5775e9c1e22fe454 resolves the issue.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity, while the EPSS score is not available. The vulnerability is not listed in CISA KEV. An attacker can potentially launch the attack remotely, but success requires non‑trivial effort and knowledge of the Modbus payload. Publicly available exploit code increases the risk of real‑world attacks. During this period, vulnerability exploitation is considered difficult but not impossible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the commit 4c90c3e3418a2b09dc82b7ca5775e9c1e22fe454 to the PcapPlusPlus source code or update to a later release that includes the fix.
  • If the patch cannot be applied immediately, avoid exposing the affected systems to untrusted Modbus traffic by implementing firewall rules or network segmentation.
  • Conduct a code audit and static analysis on the ModbusLayer implementation to detect similar heap‑based overflows or other input‑validation issues.

Generated by OpenCVE AI on June 29, 2026 at 18:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title seladb PcapPlusPlus Modbus Protocol ModbusLayer.h getLength heap-based overflow
First Time appeared Seladb
Seladb pcapplusplus
Weaknesses CWE-119
CWE-122
CPEs cpe:2.3:a:seladb:pcapplusplus:*:*:*:*:*:*:*:*
Vendors & Products Seladb
Seladb pcapplusplus
References
Metrics cvssV2_0

{'score': 5.1, 'vector': 'AV:N/AC:H/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 5.6, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jun 30, 2026, 3:34 PM
Reserved
Jun 29, 2026, 4:25 AM
Status
Deferred
Published
Jun 29, 2026, 5:16 PM
Modified
Oct 25, 2026, 9:10 PM