Skip to main content

lib60870 EUVDEUVD-2026-51362

| CVE-2026-61893 MEDIUM
Out-of-bounds Read (CWE-125)
2026-07-30 ics-cert@hq.dhs.gov GHSA-gfjj-vr9m-mw6f
6.9
CVSS 4.0 · Vendor: hq
View

Attack ChainAIDerived

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

  1. Access
    Reach IEC 60870-5-104 TCP endpoint
  2. Delivery
    Craft I-frame with TypeID C_TS_NA_1 and inflated object count
  3. Exploit
    Transmit single malformed packet unauthenticated
  4. Execution
    Trigger off-by-one read in TestCommand_getFromBuffer
  5. Impact
    Leak 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 TestCommand_getFromBuffer function reads one byte beyond the heap buffer boundary, either surfacing a byte of adjacent heap memory to the attacker (information disclosure) or causing an access violation that crashes the communication process. In a SCADA context, crashing the IEC 60870-5-104 daemon can sever the master-station-to-RTU communication link, disrupting real-time monitoring or automated control of the connected infrastructure.

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

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

Alert me

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

lib60870 2.4.0

Affected Packages

euvd lib60870 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

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

Vendor (hq) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.5 MEDIUM

Network-reachable, no auth or interaction required; one-byte heap read yields low confidentiality loss and potential crash yields low availability impact.

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

Primary rating from Vendor (hq).

CVSS VectorVendor: hq

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

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
leading open-source IEC 60870-5-104 library for OT/SCADA systems
Threat Intel
1
1 sources
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CISA GitHub VulDB

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 No
EPSS 0.3%
Patch available No
Active threat Yes
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
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: +10
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain), CISA Vulnrichment

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