snap7-rs
CVE-2025-14673
MEDIUM
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network attack, no privileges, low impact, no scope change
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-119 – Buffer Overflow
View allSame technique Buffer Overflow
View allShare
External POC / Exploit Code
Leaving vuln.today