Skip to main content

snap7 CVE-2026-90572

| EUVDEUVD-2026-77053 LOW
Buffer Overflow (CWE-119)
2026-09-13 VulDB GHSA-xrq6-q643-mcv3
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain high-privileged API credentials
  2. Delivery
    Connect to snap7-embedded application over network
  3. Exploit
    Invoke opUpload with crafted DataLen
  4. Execution
    Trigger CWE-119 boundary violation in s7_micro_client.cpp
  5. Persist
    Corrupt process memory
  6. Impact
    Achieve limited confidentiality/integrity/availability impact

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires that the attacker hold high-privileged (PR:H) access sufficient to invoke the snap7 TSnap7MicroClient::opUpload API - this typically means operator or administrator credentials within the SCADA/HMI application embedding the library, or direct programmatic API access. The upload operation must be reachable over the network (AV:N), meaning the snap7 client must be configured to connect to a reachable Siemens S7 PLC endpoint. No user interaction is required once API access is established. Exploitation is limited by: (1) the high-privilege prerequisite, ruling out unauthenticated remote attackers; (2) the requirement that the target application exposes the opUpload code path; and (3) the impact being constrained to the vulnerable system only (S:U, SC/SI/SA all N in CVSS 4.0). Non-default or absent PLC network connectivity would block the network vector.

Impact

The CVSS 4.0 score of 5.1 with vector AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L reflects a moderate, not critical, real-world risk: high privileges are required, and the impact is limited across all three impact axes. The PR:H metric is the dominant limiting factor - an attacker must already possess operator-level credentials or API access sufficient to invoke the opUpload function, which substantially reduces the realistic attack population. A public POC exists as a GitHub issue (#30), which lowers the barrier to exploitation for those who already have the required access, but no confirmed active exploitation (no CISA KEV listing) has been identified. Even a mid-sized municipal IT team in malbork operating snap7-based SCADA systems should treat this as a prioritized patch-cycle item rather than an emergency, given the privilege requirement. EPSS data is not available in the provided intelligence; the absence of KEV listing and the narrow exploitation window (high-privileged API callers only) suggest real-world exploitation remains limited to targeted scenarios. The project's lack of response to the responsible disclosure is a compounding concern, as no timeline for remediation exists.

Exploit ScenarioDerived

An attacker with high-privileged access to a SCADA application embedding snap7 - such as a compromised operator workstation or a rogue internal API caller - invokes the opUpload function with a crafted oversized or negative DataLen value. The library's lack of boundary validation triggers a heap or stack buffer overflow within the snap7 process, potentially corrupting adjacent memory structures. The publicly available proof-of-concept (GitHub issue #30) demonstrates the triggering condition, lowering the effort required for a privileged insider or post-compromise lateral mover to reach the vulnerable code path.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 13, 2026

Memory corruption in davenardella snap7 up to version 1.4.3 allows a network-accessible, high-privileged attacker to corrupt memory by supplying a malformed DataLen argument to the TSnap7MicroClient::opUpload function in src/core/s7_micro_client.cpp. The affected library is used for communicating with Siemens S7 PLCs in industrial control environments, making the confidentiality, integrity, and availability of PLC upload sessions potentially compromised. A public proof-of-concept exists via a GitHub issue report, and the project maintainer has not yet responded or issued a patch.

RemediationAI

No vendor-released patch has been identified at time of analysis; the project maintainer had not responded to the disclosure as of the CVE report. As a compensating control, applications embedding snap7 should validate and clamp the DataLen argument before passing it to opUpload, ensuring it does not exceed the allocated buffer size - this can be implemented at the application wrapper layer without modifying the library. Additionally, restrict network access to PLC management interfaces and enforce strong authentication for any component invoking snap7 upload operations, reducing the pool of principals that could trigger the vulnerability. Monitor the upstream GitHub repository at https://github.com/davenardella/snap7/ for an updated release and apply it promptly when available. Organizations with hard real-time or safety requirements should consider evaluating alternative S7 communication libraries with active maintenance until this issue is addressed.

Affected VersionsENISA

snap7 1.4.1
snap7 1.4.0
snap7 1.4.3
snap7 1.4.2

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

snap7 (CPE: cpe:2.3:a:davenardella:snap7:*:*:*:*:*:*:*:*) is an open-source, cross-platform library for communicating with Siemens S7-series PLCs over the S7 ISO-on-TCP protocol. The root cause is CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer): the opUpload method in TSnap7MicroClient does not properly validate the caller-supplied DataLen argument before using it to govern a memory operation, allowing an out-of-bounds read or write within the library's heap or stack buffers. The S7 upload operation is used to retrieve program blocks from a PLC, and its DataLen parameter controls the size of the data buffer involved in this transfer. Because the library is typically embedded in SCADA/HMI applications, the vulnerable code runs in the context of the host application process.

Know when Snap7 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 (VulDB) PRIMARY 2.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.7 MEDIUM

Network reachable but PR:H required to invoke opUpload; impact limited to partial corruption with no scope change.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

3
Severity Changed
Sep 13, 2026 - 18:22 NVD
MEDIUM LOW
CVSS changed
Sep 13, 2026 - 18:22 NVD
5.1 (MEDIUM) 2.0 (LOW)
CVE Published
Sep 13, 2026 - 17:15 cve.org
MEDIUM 5.1

DescriptionCVE.org

A vulnerability was determined in davenardella snap7 up to 1.4.3. The affected element is the function TSnap7MicroClient::opUpload of the file src/core/s7_micro_client.cpp. Executing a manipulation of the argument DataLen can lead to memory corruption. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
Low
niche open-source ICS/OT library for Siemens S7 PLCs
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

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