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.
Published: 2026-06-29
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A heap buffer overflow is triggered within the TS7Worker::PerformFunctionWrite() routine located in core/s7_server.cpp of the snap7 library. By crafting a specific Modbus packet and sending it to a server running snap7 v1.4.3, an attacker can corrupt heap memory and force the process to terminate. The consequence is a loss of availability for the affected application or device, since the crash requires a restart to resume normal operation.

Affected Systems

The vulnerability exists in the snap7 open‑source library maintained by davenardella. Only version 1.4.3 is affected; later releases may contain the fix. Systems employing this library for Modbus communication should be reviewed for potential exposure.

Risk and Exploitability

The CVSS score of 6.5 indicates a medium severity, and EPSS data is <1%, showing a low probability of exploitation, but the flaw permits remote exploitation without authentication, enabling an attacker to cause a denial of service. No entry in the CISA KEV catalog suggests the vulnerability has not yet been exploited in the wild, yet the lack of defensive controls means the risk remains significant for exposed services.

Generated by OpenCVE AI on June 30, 2026 at 16:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade snap7 to a patched version where the TS7Worker::PerformFunctionWrite buffer bounds are correctly enforced
  • If an immediate upgrade is not possible, isolate the Modbus port or filter traffic to limit attack surface until the library is updated
  • Consider disabling or restricting the use of the function write capability in configuration if the library offers such an option

Generated by OpenCVE AI on June 30, 2026 at 16:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Davenardella
Davenardella snap7
Vendors & Products Davenardella
Davenardella snap7

Tue, 30 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Title Heap Buffer Overflow in snap7 TS7Worker Function Causes Denial of Service

Tue, 30 Jun 2026 14:30:00 +0000

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'}


Mon, 29 Jun 2026 22:30:00 +0000

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

Subscriptions

Davenardella Snap7
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-06-30T13:34:14.581Z

Reserved: 2026-06-07T00:00:00.000Z

Link: CVE-2026-51218

cve-icon Vulnrichment

Updated: 2026-06-30T13:31:10.756Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T10:04:39Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow