snap7-rs
CVE-2025-14673
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted S7 write packet
-
ExploitTrigger heap overflow in as_ct_write
-
ExecutionCorrupt heap memory
-
ImpactCause denial of service or remote code execution
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 | The vulnerability is remotely exploitable via the S7 protocol; the CVSS vector indicates no privileges or user interaction are required. The function as_ct_write is called when processing write requests; no special configuration or authentication is needed for exploitation. Affected deployments must have the vulnerable library enabled and accept S7 connections from untrusted networks. The attack is network-based against default configurations. |
| Impact | CVSS 4.0 base score 5.5 with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L reflecting network-accessible, low-complexity exploitation without authentication or user interaction, but with low impact to confidentiality, integrity, and availability. EPSS at 0.09% (25th percentile) indicates a low probability of widespread exploitation. Public POC availability increases risk somewhat, but the absence of CISA KEV listing and low EPSS suggest this vulnerability is unlikely to be a priority for most defenders. No SSVC or vendor advisory data was provided. The risk is moderate: exploitable but low impact and currently not actively targeted. |
| Exploit ScenarioDerived | An attacker with network access to an application using snap7-rs sends a specially crafted S7 write packet, triggering a heap overflow in the as_ct_write function. This could cause a denial-of-service crash or potentially arbitrary code execution. Public exploit code is readily available, simplifying the attack. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 27, 2026
Heap-based buffer overflow in snap7-rs up to version 1.142.1 allows remote attackers to corrupt memory via crafted S7 write requests to the S7Client::as_ct_write function. Public exploit code exists, but EPSS score is low (0.09%) and no active exploitation has been confirmed (KEV not listed). The vulnerability poses a moderate risk of denial of service or potential code execution in industrial automation environments using this Rust S7 library.
RemediationAI
Upgrade snap7-rs to a patched version beyond 1.142.1 as soon as the vendor releases a fix; no official patched version has been confirmed at the time of analysis. Until then, mitigate by restricting network access to services using the library, implementing input validation on S7 write requests, or switching to an alternative S7 library with active maintenance. Monitor the vendor issue tracker for updates.
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-rs is a Rust binding for Snap7, a library used to communicate with Siemens S7 PLCs over Ethernet. The vulnerable function as_ct_write resides in the test file /tests/snap7-rs/src/client.rs but may be incorporated into production code. The CWE-119 classification indicates a buffer overflow, specifically heap-based, likely caused by missing or incorrect bounds checking when processing data for S7 write operations. The CPE entry cpe:2.3:a:gmg137:snap7-rs:*:*:*:*:*:*:*: confirms all versions up to 1.142.1 are affected.
Know when Snap7 Rs 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network attack, no privileges, low impact, no scope change
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability has been found in gmg137 snap7-rs up to 1.142.1. Affected is the function snap7_rs::client::S7Client::as_ct_write of the file /tests/snap7-rs/src/client.rs. The manipulation leads to heap-based buffer overflow. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Affected Products (CPE)CVE.org
Heap-based buffer overflow in gmg137 snap7-rs library up to version 1.142.1 allows remote attackers to corrupt heap memo
Memory corruption in the pthread_cond_destroy function of snap7-rs's Public API allows adjacent-network attackers with l
Remote code execution is possible through a heap-based buffer overflow in the S7Client::download function of the gmg137
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB