CVE-2025-46613
📋 TL;DR
OpenPLC 3 has a memory corruption vulnerability in server.cpp where threads may access handleConnections arguments after the parent stack frame becomes unavailable. This could allow attackers to crash the PLC server or potentially execute arbitrary code. Anyone running OpenPLC 3 versions up to commit 64f9c11 is affected.
💻 Affected Systems
- OpenPLC_v3
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete system compromise, manipulation of industrial processes, or denial of service affecting physical operations.
Likely Case
Server crash causing PLC service disruption and temporary loss of industrial control functionality.
If Mitigated
Limited impact with proper network segmentation and access controls preventing exploitation attempts.
🎯 Exploit Status
Exploitation requires understanding of memory corruption techniques but no authentication is needed.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Versions after commit 64f9c11
Vendor Advisory: https://github.com/thiagoralves/OpenPLC_v3/issues/273
Restart Required: Yes
Instructions:
1. Update OpenPLC to latest version after commit 64f9c11. 2. Pull latest changes from GitHub repository. 3. Recompile and restart OpenPLC service.
🔧 Temporary Workarounds
Network Segmentation
allIsolate OpenPLC systems from untrusted networks
Access Control Lists
linuxRestrict network access to OpenPLC ports
iptables -A INPUT -p tcp --dport 502 -s trusted_network -j ACCEPT
iptables -A INPUT -p tcp --dport 502 -j DROP
🧯 If You Can't Patch
- Implement strict network segmentation to isolate OpenPLC from untrusted networks.
- Deploy intrusion detection systems to monitor for exploitation attempts.
🔍 How to Verify
Check if Vulnerable:
Check OpenPLC version or commit hash. If using commit 64f9c11 or earlier, system is vulnerable.
Check Version:
Check OpenPLC version in web interface or examine git commit history in installation directory.
Verify Fix Applied:
Verify OpenPLC is running version after commit 64f9c11 and check that the memory corruption fix is applied in server.cpp.
📡 Detection & Monitoring
Log Indicators:
- Unexpected OpenPLC crashes or restarts
- Memory access violation errors in system logs
Network Indicators:
- Unusual traffic patterns to OpenPLC port 502
- Connection attempts from unexpected sources
SIEM Query:
source="openplc.log" AND ("crash" OR "segmentation fault" OR "memory corruption")