CVE-2026-51218

Heap Buffer Overflow in snap7 TS7Worker Causing DoS

Published Jun 29, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A heap buffer overflow in the TS7Worker::PerformFunctionWrite() function (/core/s7_server.cpp) of snap7 v1.4.3 allows attackers to cause a Denial of Service (DoS) via a crafted packet.

Analysis

AI-generated

Technical impact

A flaw in snap7’s TS7Worker::PerformFunctionWrite() routine corrupts heap memory when a specially crafted Modbus packet is processed. This unchecked write to unmanaged memory, identified as CWE-122, can crash the library, leading to loss of availability for any application or device that relies on snap7 for Modbus communication.

Affected Systems

The vulnerability exists in the open‑source snap7 library version 1.4.3. Devices or software that incorporate this library—such as industrial automation controllers, SCADA systems, or monitoring tools—are potentially exposed. Later releases of snap7 are expected to contain the fix.

Risk and Exploitability

The CVSS score of 7.5 classifies the issue as high severity, although the EPSS score of less than 1% suggests a low current exploitation probability. Based on the description, it is inferred that the attack vector is remote, most likely through the Modbus TCP port, allowing an external actor to trigger the overflow and induce a denial‑of‑service. The vulnerability is not currently listed in the CISA KEV catalog, but its remote nature and impact warrant prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade snap7 to the latest version that includes the TS7Worker bounds‑check fix.
  • If an upgrade is not immediately possible, block or filter traffic on the Modbus TCP port used by the vulnerable library to prevent external packet delivery.
  • As a temporary measure, disable or limit the function write capability in the library’s configuration to reduce the attack surface.

Generated by OpenCVE AI on August 5, 2026 at 02:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Heap Buffer Overflow in snap7 TS7Worker Causing DoS
Type Values Removed Values Added
Title Heap Buffer Overflow in snap7 TS7Worker Function Causes Denial of Service
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

ssvc

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

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

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

Type Values Removed Values Added
First Time appeared Davenardella
Davenardella snap7
Vendors & Products Davenardella
Davenardella snap7
Type Values Removed Values Added
Title Heap Buffer Overflow in snap7 TS7Worker Function Causes Denial of Service
Type Values Removed Values Added
Weaknesses CWE-122
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

ssvc

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

Type Values Removed Values Added
Description A heap buffer overflow in the TS7Worker::PerformFunctionWrite() function (/core/s7_server.cpp) of snap7 v1.4.3 allows attackers to cause a Denial of Service (DoS) via a crafted packet.
References
Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 30, 2026, 4:50 PM
Reserved
Jun 7, 2026, 12:00 AM
Status
Deferred
Published
Jun 29, 2026, 11:16 PM
Modified
Jul 30, 2026, 7:18 PM