Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach IEC 60870-5-104 TCP endpoint
-
DeliveryCraft I-frame with TypeID C_TS_NA_1 and inflated object count
-
ExploitTransmit single malformed packet unauthenticated
-
ExecutionTrigger off-by-one read in TestCommand_getFromBuffer
-
ImpactLeak heap byte or crash communication process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target system must be running an application linked against a vulnerable version of the lib60870 library with an active IEC 60870-5-104 server or client endpoint. The specific trigger is processing a received I-frame with TypeID C_TS_NA_1 (Test Command) bearing an inflated information-object count - this is a standard message type in the protocol and requires no non-default configuration to be parsed. CVSS AV:N/AC:L/PR:N/UI:N confirms the attack requires no authentication, no special network position beyond TCP reachability to the listening port, and no user interaction. The primary limiting factor for exploitation is network segmentation: IEC 60870-5-104 endpoints in well-architected OT networks sit behind demilitarized zones or data diodes that restrict access to authorized master stations only. Exposure is significantly higher where protocol ports are reachable from broader network segments or from the internet. |
| Impact | The CVSS 4.0 score of 6.9 with vector AV:N/AC:L/AT:N/PR:N/UI:N reflects a network-reachable, low-complexity, unauthenticated attack with partial confidentiality (VC:L) and availability (VA:L) impact. In isolation these impacts are modest - a single leaked heap byte and a potential process fault. However, the ICS/OT deployment context materially elevates real-world risk: industrial control systems frequently run on long patch cycles, expose protocol ports to segmented but insufficiently restricted networks, and treat process continuity as a safety-critical requirement. A crash of the IEC 60870-5-104 communication stack can disrupt monitoring or control of physical infrastructure. The absence of a CISA KEV entry and no identified public POC code keeps the immediate exploitation risk lower than a fully weaponized flaw, but the combination of zero-barrier exploitation prerequisites and safety-critical deployment environments warrants priority treatment in affected OT environments. No conflict between CVSS signals and description was identified. |
| Exploit ScenarioDerived | An unauthenticated attacker with TCP access to port 2404 on a system running an application built with a vulnerable lib60870 version sends a single crafted IEC 60870-5-104 I-frame containing a C_TS_NA_1 ASDU whose object count field is set to a value exceeding the actual payload length. The |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 30, 2026
Out-of-bounds heap read in mz-automation's lib60870 library exposes ICS/SCADA systems to unauthenticated remote exploitation via a crafted IEC 60870-5-104 I-frame. An attacker sending a C_TS_NA_1 ASDU with an inflated object count triggers TestCommand_getFromBuffer to read one byte past the end of a heap-allocated buffer, producing partial heap memory disclosure and potential availability disruption. CISA ICS-CERT has published advisory ICSA-26-211-11; no active exploitation is confirmed and no public exploit code has been identified at time of analysis.
RemediationAI
Apply the patched release of lib60870 once confirmed in the GitHub Security Advisory GHSA-g3w7-x5rx-83xm; a specific fixed version number is not stated in the available data and should be verified directly at https://github.com/mz-automation/lib60870/security/advisories/GHSA-g3w7-x5rx-83xm before upgrading. Until a patch is applied, restrict network access to the IEC 60870-5-104 service port (default TCP 2404) to known and authorized master stations using firewall rules or network ACLs - this reduces the attack surface to authenticated peers and is a standard ICS defense-in-depth measure with minimal operational impact. If the C_TS_NA_1 (TypeID 104 Test Command) message type is not operationally required, consider filtering or rejecting frames with that TypeID at a protocol-aware intermediary such as an ICS-aware firewall or DataDiode; note this may break interoperability with systems that use test-command heartbeat mechanisms. Refer to CISA advisory ICSA-26-211-11 at https://www.cisa.gov/news-events/ics-advisories/icsa-26-211-11 for vendor-specific mitigations.
Affected VersionsENISA
Affected Packages
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
lib60870 is an open-source C/C++ library by mz-automation implementing the IEC 60870-5-104 telecontrol protocol, which is the TCP/IP adaptation of IEC 60870-5-101 and is ubiquitous in power-grid SCADA, substation automation, and industrial control communication. TypeID 104 (C_TS_NA_1, Test Command No Additional qualifier) is one of the Application Service Data Unit (ASDU) types parsed in the library. The function TestCommand_getFromBuffer deserializes this ASDU type from a heap-allocated buffer; when an attacker crafts an I-frame with an inflated information-object count field, the parser iterates beyond the buffer boundary by one byte. CWE-125 (Out-of-Bounds Read) is the root cause class: the library fails to validate that the declared object count is consistent with the actual buffer length before indexing into it, a classic off-by-one in a length-prefixed binary protocol parser.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable, no auth or interaction required; one-byte heap read yields low confidentiality loss and potential crash yields low availability impact.
Primary rating from Vendor (hq).
CVSS VectorVendor: hq
DescriptionCVE.org
A crafted IEC 60870-5-104 I-frame with TypeID 104 (C_TS_NA_1) and an inflated object count causes TestCommand_getFromBuffer to read one byte past the end of the heap-allocated message buffer.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-51362
GHSA-gfjj-vr9m-mw6f
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB