Skip to main content

snap7-rs CVE-2025-14673

MEDIUM
Buffer Overflow (CWE-119)
2025-12-14 cna@vuldb.com
5.5
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Send crafted S7 write packet
  2. Exploit
    Trigger heap overflow in as_ct_write
  3. Execution
    Corrupt heap memory
  4. Impact
    Cause 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Vendor (vuldb) PRIMARY 5.5 MEDIUM
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
vuln.today AI 7.3 HIGH

Network attack, no privileges, low impact, no scope change

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/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
None
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

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

EPSS Score
0.1%
Top 75% exploitable
Prevalence
Low
Industrial automation library, limited deployment
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Yes
Human Impact· derived
Medium

Priority Score

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

Affected Products (CPE)CVE.org

cpe:2.3:a:gmg137:snap7-rs:*:*:*:*:*:*:*:*

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