CVE-2023-27772

7.5 HIGH

📋 TL;DR

CVE-2023-27772 is a segmentation fault vulnerability in libiec61850's ControlObjectClient_setOrigin() function that can cause denial of service or potentially allow arbitrary code execution. This affects systems using libiec61850 v1.5.1 for IEC 61850 communication in industrial control and energy management systems.

💻 Affected Systems

Products:
  • libiec61850
Versions: Version 1.5.1 specifically
Operating Systems: Linux, Windows, Embedded systems using libiec61850
Default Config Vulnerable: ⚠️ Yes
Notes: Any system using libiec61850 v1.5.1 with ControlObjectClient functionality is vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete system compromise, disruption of critical infrastructure operations, or manipulation of industrial control systems.

🟠

Likely Case

Denial of service causing application crashes and disruption of IEC 61850 communication in industrial environments.

🟢

If Mitigated

Application crash with limited impact if proper network segmentation and process isolation are implemented.

🌐 Internet-Facing: MEDIUM - While industrial systems shouldn't be internet-facing, misconfigurations could expose them.
🏢 Internal Only: HIGH - Industrial control systems often have critical functions and this vulnerability affects core communication libraries.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

The vulnerability is in a core library function that handles control operations, making exploitation feasible for attackers with network access to affected systems.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after commit 79a8eaf26070e02044afc4b2ffbfe777dfdf3e0b

Vendor Advisory: https://github.com/mz-automation/libiec61850/commit/79a8eaf26070e02044afc4b2ffbfe777dfdf3e0b

Restart Required: Yes

Instructions:

1. Update libiec61850 to version containing commit 79a8eaf26070e02044afc4b2ffbfe777dfdf3e0b
2. Recompile any applications using libiec61850
3. Restart affected services
4. Test IEC 61850 functionality

🔧 Temporary Workarounds

Network Segmentation

linux

Restrict access to IEC 61850 ports (typically 102) to trusted networks only

iptables -A INPUT -p tcp --dport 102 -s trusted_network -j ACCEPT
iptables -A INPUT -p tcp --dport 102 -j DROP

Process Isolation

linux

Run libiec61850 applications with minimal privileges and in isolated environments

sudo systemctl edit your_service -- add 'User=nobody' and 'Group=nogroup'
sudo setcap -r /path/to/application

🧯 If You Can't Patch

  • Implement strict network access controls to limit exposure to trusted IEC 61850 clients only
  • Deploy intrusion detection systems monitoring for abnormal IEC 61850 traffic patterns

🔍 How to Verify

Check if Vulnerable:

Check libiec61850 version: strings /usr/lib/libiec61850.so | grep 'libiec61850' or check application dependencies for version 1.5.1

Check Version:

pkg-config --modversion libiec61850 || strings /usr/lib/libiec61850.so 2>/dev/null | grep -i version

Verify Fix Applied:

Verify the library version is updated and test ControlObjectClient functionality without crashes

📡 Detection & Monitoring

Log Indicators:

  • Segmentation fault errors in application logs
  • Unexpected termination of IEC 61850 services
  • Core dumps from libiec61850 processes

Network Indicators:

  • Abnormal IEC 61850 MMS traffic patterns
  • Multiple connection attempts to port 102 followed by service crashes

SIEM Query:

source="application_logs" AND ("segmentation fault" OR "SIGSEGV") AND "libiec61850"

🔗 References

📤 Share & Export