Skip to main content

snap7 EUVDEUVD-2026-40244

| CVE-2026-51218 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-06-29 mitre GHSA-6m46-rpq9-jh59
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Recon
    Identify host with snap7 server port exposed (TCP 102)
  2. Delivery
    Establish TCP connection to S7 server
  3. Exploit
    Craft malformed S7 write function packet
  4. Install
    Send packet to TS7Worker::PerformFunctionWrite()
  5. C2
    Trigger heap buffer overflow
  6. Execute
    Crash snap7 server process
  7. Impact
    Disrupt PLC communication and dependent SCADA/HMI systems

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

The target host must be running snap7 v1.4.3 with the snap7 server component active and the S7 server port (typically TCP 102) reachable by the attacker. The CVSS vector specifies PR:N (no authentication required), consistent with the S7 protocol's historically minimal authentication controls in snap7 server implementations. The UI:R designation in the provided CVSS vector is inconsistent with a server-side packet-triggered crash and should not be treated as a genuine mitigation - exploitation in practice almost certainly requires no user interaction on the target. Exploitation is confined to the snap7 server component; deployments using snap7 solely as an S7 client connecting outward to external PLCs are not affected. Impact is exclusively Denial of Service - no code execution, credential theft, or data manipulation capability is indicated by available data. The primary limiting factors for exploitation are: (1) the niche deployment profile of snap7 in OT/ICS environments rather than general internet-facing infrastructure, and (2) the need for network path reachability to the S7 server port, which is typically firewalled in well-architected OT networks.

Impact

The provided CVSS score of 6.5 uses the vector AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, but the UI:R (User Interaction Required) designation is inconsistent with the described attack mechanism: a server passively receiving a crafted network packet does not require any user interaction to trigger a crash. This appears to be a scoring error; real-world exploitability is likely closer to UI:N, which would elevate the score to approximately 7.5 (High). Defenders should NOT rely on UI:R as a mitigating factor. EPSS at 0.19% (8th percentile) and absence from the CISA KEV catalog confirm no known active exploitation at time of analysis. Impact is constrained to Availability with no confidentiality or integrity exposure, limiting the CVSSv3 business risk in IT contexts. In ICS/OT environments, however, crashing the snap7 server severs communication with downstream PLCs, potentially halting physical processes or triggering safety system responses - a real-world impact that CVSS does not fully capture. The SSVC exploitation status is 'none' and automatable status is plausibly 'yes' given AV:N/AC:L/PR:N, but the niche deployment footprint (low prevalence) constrains the actual threat surface. Overall priority: moderate in IT contexts, elevated in OT/ICS deployments.

Exploit ScenarioDerived

An attacker with network access to TCP port 102 on a host running snap7 v1.4.3 in server mode sends a specially crafted S7 write function request. The malformed packet triggers a heap buffer overflow in TS7Worker::PerformFunctionWrite(), corrupting heap memory and crashing the server process. This severs all active S7 communication sessions and prevents any PLC-connected SCADA, HMI, or gateway applications from reading or writing to downstream Siemens PLCs until the server is manually restarted, potentially halting monitored industrial processes.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 30, 2026

Heap buffer overflow in snap7 v1.4.3 crashes the embedded S7 server when processing a specially crafted write function packet targeting TS7Worker::PerformFunctionWrite() in /core/s7_server.cpp. Systems deploying snap7 as an S7-compatible communication server - common in industrial SCADA, HMI, and IoT gateway applications bridging to Siemens S7-series PLCs - can be disrupted remotely with no privileges required per the CVSS PR:N designation. No public exploit identified at time of analysis, and the EPSS score of 0.19% (8th percentile) reflects minimal current exploitation activity; however, operational impact in OT environments can exceed what the CVSS Availability score alone suggests.

RemediationAI

No vendor-released patch has been identified at time of analysis. The GitHub issue at https://github.com/davenardella/snap7/issues/14 should be actively monitored for maintainer response, a fix commit, or a patched release. Until a patch is confirmed, apply network-level compensating controls: restrict access to the S7 server port (typically TCP 102) via firewall rules or ACLs, allowing only explicitly trusted client IP addresses - this directly limits the attacker pool and reduces exposure without affecting legitimate clients. Deploy snap7-based servers in a network-segmented OT DMZ or behind an industrial firewall or data diode to prevent direct internet or corporate-LAN exposure. If write operations to the S7 server are not operationally required, review whether the PerformFunctionWrite code path can be disabled or the server configured in read-only mode, though this is snap7 library-dependent and may require code-level changes. Monitor snap7 server processes for unexpected crashes or connection anomalies as an early indicator of exploitation attempts. Note that firewall segmentation has the trade-off of requiring explicit allow-listing of all legitimate S7 client hosts, which may require operational inventory work in complex OT environments.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

snap7 is an open-source C++ library implementing the Siemens S7 communication protocol over TCP/IP, enabling connectivity to Siemens S7-300, S7-400, S7-1200, and S7-1500 PLCs. The vulnerable code path lives in the server component: TS7Worker::PerformFunctionWrite() in /core/s7_server.cpp processes incoming S7 write function requests from connected clients. CWE-122 (Heap-based Buffer Overflow) indicates that attacker-controlled data within the crafted packet overflows a heap-allocated buffer - most likely due to missing or insufficient length validation before a memory copy operation, a common pattern in protocol parsing code. The CPE provided (cpe:2.3:a:n/a:n/a) is a placeholder and provides no version-bounding information; the authoritative product reference is the snap7 GitHub repository at https://github.com/davenardella/snap7. The affected version is explicitly v1.4.3. In OT deployments, snap7 is typically embedded in SCADA middleware, MES systems, soft-PLC implementations, and protocol gateways, making the server component an attractive target for disrupting industrial process communication.

Know when N A gets its next vulnerability

  • 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 (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Server-side packet processing crash requires no user interaction; UI:R in provided vector is inconsistent with the described mechanism and appears to be a scoring error.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Severity Changed
Jul 30, 2026 - 19:22 NVD
MEDIUM HIGH
CVSS changed
Jul 30, 2026 - 19:22 NVD
6.5 (MEDIUM) 7.5 (HIGH)
CVSS changed
Jun 30, 2026 - 14:22 NVD
6.5 (MEDIUM)
CVE Published
Jun 29, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche open-source ICS library for Siemens PLC communication
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Medium
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
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.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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