Skip to main content

Snap7 CVE-2026-131849

| EUVDEUVD-2026-128331 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-11-18 disclosure@vulncheck.com GHSA-68f4-569m-2rvc
8.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Control or impersonate target PLC
  2. Delivery
    Client issues Cli_ReadSZL/SZLList request
  3. Exploit
    Return oversized multi-slice SZL responses
  4. Execution
    Overflow 65536-byte opData heap buffer
  5. Impact
    Crash client and corrupt heap

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

Exploitation requires a Snap7 client (through 1.4.3) to open an S7 connection to an attacker-controlled endpoint and call Cli_ReadSZL() or Cli_ReadSZLList(); the attacker must be positioned as the responding PLC via a compromised PLC, impersonation, or MITM on the S7comm channel, then send multi-slice SZL responses with oversized DLen values. Limiting factors: this is client-side only (PLC/server deployments are not the target), it is not exploitable when the client communicates solely with trusted PLCs, and the need to control or impersonate the PLC endpoint is what raises attack complexity (AC:H/AT:P) rather than allowing opportunistic mass exploitation.

Impact

The input scores this CVSS 4.0 8.3 (High), and the vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H is internally consistent with the mechanism: a network-reachable but condition-dependent flaw with high integrity and availability impact (heap corruption plus client crash) and no confidentiality impact. The decisive nuance is directionality - this is a CLIENT-side flaw triggered by a malicious, rogue, or impersonated PLC, not a remotely exploitable server. That is precisely what AC:H and AT:P (attack requirements present) encode: the attacker must occupy the PLC endpoint the Snap7 client connects to. No EPSS score, no CISA KEV entry, and no public exploit were supplied, so exploitation is no public exploit identified at time of analysis. The vuln.today decision label is this_week, not act_now or emergency, which matches a real-but-conditional ICS/OT issue: genuinely worth patching this week, but not a wormable internet-facing bug. Code-execution potential is inferred from the heap-overflow class (CWE-122); only crash and heap corruption are directly described. Missing signals to note explicitly: EPSS and KEV data are absent (not evidence of low risk, simply not provided), and no numbered fixed release is confirmed - the fix exists only as PR #12.

Exploit ScenarioDerived

An attacker who controls, spoofs, or man-in-the-middles a Siemens S7 PLC answers a Snap7 client's Cli_ReadSZL() or Cli_ReadSZLList() call with crafted multi-slice SZL responses that keep flagging additional data using oversized attacker-controlled DLen values. The accumulated copies overflow the fixed 65536-byte opData heap buffer in opReadSZL(), crashing the client and corrupting heap memory, with potential for code execution. No public exploit was identified; the trigger and fix are documented in issue #11 and patch PR #12, which add bounds checks before each memcpy.

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

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

Alert me

AnalysisAIv1 – Nov 18, 2026

A heap-based buffer overflow in TSnap7MicroClient::opReadSZL() affects Snap7 client builds through 1.4.3 when a client connects to a rogue or impersonated PLC that returns multi-slice SZL responses with oversized, attacker-controlled DLen values, overflowing the 65536-byte opData buffer and corrupting heap memory or crashing the process. Only the client side is exposed - a Snap7-based PLC/server is not the target - and exploitation requires the attacker to control or impersonate the responding S7 endpoint, which is why the assessed vector carries AC:H/AT:P despite high integrity and availability impact and no confidentiality impact. No public exploit code has been identified at time of analysis and there is no KEV listing; the issue is fixed upstream via pull request #12, which adds the missing bounds check.

RemediationAI

Vendor-released patch: no tagged release with the fix was independently confirmed at time of analysis; the correction exists in upstream pull request https://github.com/davenardella/snap7/pull/12, which guards both memcpy calls in TSnap7MicroClient::opReadSZL() with if (Offset + DataSZL <= sizeof(opData)) and otherwise returns errCliBufferTooSmall. Teams building Snap7 from source should apply that commit or cherry-pick the bounds check into their copy of src/core/s7_micro_client.cpp and rebuild, then verify via the diff in the PR; consumers of a packaged or vendored Snap7 dependency should confirm with their distributor whether the fix is included before assuming they are covered. Because the overflow is triggered only by a hostile S7 response, the practical interim control is to restrict Snap7 clients to PLC endpoints that are trusted and network-protected so a rogue or impersonated PLC cannot answer on the S7comm channel; the trade-off is reduced reachability for legitimate multi-site or field-network topologies, and that control fails entirely under a successful MITM, so patching remains the durable fix. The vulnerability is client-side only, so hardening the PLC/server role is not a mitigation for this CVE. Given the this_week priority label and High severity scoring, schedule the code fix within the current patch cycle.

Affected VersionsENISA

snap7 0 ≤1.4.3

Affected Packages

euvd snap7 no fix

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

The flaw is a classic CWE-122 heap-based buffer overflow in the S7comm client library Snap7. Cli_ReadSZL() and Cli_ReadSZLList() retrieve the PLC's System Status List, a diagnostic structure that may be returned in multiple slices: the first slice is copied into the fixed 65536-byte opData buffer inside opReadSZL(), and subsequent slices are copied at an incrementing offset as the response flags that more data follows. In versions through 1.4.3 the memcpy calls at src/core/s7_micro_client.cpp (lines 1705-1753) perform no check that Offset + DataSZL stays within sizeof(opData), so a malicious or impersonated PLC can keep advertising additional slices with attacker-chosen DLen values and drive the offset past the buffer end, overwriting adjacent heap memory. The upstream fix in pull request #12 wraps both copies in an if (Offset + DataSZL <= sizeof(opData)) guard and returns errCliBufferTooSmall otherwise. Because the defect lives in the client's response-parsing path, exposure depends entirely on the trustworthiness of the endpoint the client dials; the published CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H) reflects a network-reachable but condition-dependent issue with no confidentiality impact.

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

Vendor (vulncheck) PRIMARY 8.3 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Attacker must control or impersonate the PLC the client connects to (AC:H) but needs no client privileges (PR:N); heap corruption and crash yield I:H/A:H with no data disclosure (C:N).

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Snap7 through 1.4.3 contains a heap-based buffer overflow in TSnap7MicroClient::opReadSZL() that allows malicious PLCs to overwrite client memory by sending oversized multi-slice SZL responses. A rogue or impersonated PLC can keep flagging more data with attacker-controlled DLen slices, overflowing the 65536-byte opData buffer via Cli_ReadSZL() and Cli_ReadSZLList(), crashing the client and corrupting heap memory.

Executive ViewAI

Why It Matters

A heap-based buffer overflow in Snap7 client builds through version 1.4.3 could allow an attacker controlling a rogue or impersonated PLC to corrupt memory or crash client processes. This affects any system using the vulnerable Snap7 client to communicate with S7 endpoints, potentially disrupting industrial control system monitoring and operations. While exploitation requires the attacker to control the responding endpoint, the high integrity and availability impact warrants management attention, especially for critical infrastructure or manufacturing environments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include network segmentation to restrict Snap7 client communications to trusted PLCs, using application-level allowlisting or TLS inspection to prevent connections to rogue endpoints, and monitoring for abnormal SZL responses or crashes. Apply upstream fix from pull request #12 as a temporary measure.

Threat Intelligence Overview

EPSS Score
0.6%
Top 51% exploitable
Prevalence
Low
popular open-source Siemens S7 library, but niche ICS/OT domain
Data Quality
5 sources
Confidence: Medium
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.6%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +42
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.

Related Vulnerabilities in Snap7 Client Buffer Overflow Vulnerabilities

View all 2

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