CVE-2026-121016 — CODESYS Visualization (4.11.0.0) — CWE-669
The affected products insufficiently restrict runtime-supplied visualization data, allowing local program execution on the engineering workstation, if a user is both logged in to a CODESYS Control runtime and operates a visualization. An unauthenticated remote attacker controlling a malicious runtime and tricking a user to trust it, or performing a man-in-the-middle attack on the communication between the CODESYS Control runtime and the engineering workstation, may cause arbitrary code execution on the engineering workstation.
The affected products insufficiently restrict runtime-supplied visualization data, allowing local program execution on the engineering workstation, if a user is both logged in to a CODESYS Control runtime and operates a visualization. An unauthenticated remote attacker controlling a malicious runtime and tricking a user to trust it, or performing a man-in-the-middle attack on the communication between the CODESYS Control runtime and the engineering workstation, may cause arbitrary code execution on the engineering workstation.
🎯 What is this vulnerability?
Root cause
The CODESYS Visualization component (4.11.0.0) accepts data that is supplied by a connected CODESYS Control runtime. That data is parsed and rendered locally on the engineering workstation. The component does not enforce any sandboxing or input‑validation on the runtime‑supplied payload. As a result, a malicious runtime can embed executable code (e.g., a script, macro, or command string) inside the visualization data. When the workstation renders the visualization, the embedded code is executed with the privileges of the logged‑in user.
CWE – CWE‑669 (Improper Restriction of Operations within the Bounds of a Memory Buffer).
In practice this manifests as an arbitrary code execution flaw: the attacker can inject data that is interpreted as executable instructions rather than benign visualization content.
Attack surface
- The attacker must control a CODESYS Control runtime or perform a man‑in‑the‑middle (MITM) on the communication channel between the runtime and the workstation.
- The victim must be logged in to that runtime and actively viewing a visualization.
- No additional authentication or authorization is required beyond the normal user session.
- Loss of control over critical industrial processes.
- Potential safety hazards if PLC logic is altered.
- Significant downtime and repair costs.
- Regulatory non‑compliance if the organization is subject to IEC 62443, NIST 800‑82, or similar frameworks.
- CODESYS Visualization 4.11.0.0 (and any builds that have not applied the vendor’s patch).
- The vendor has released a patch in the 4.12.0.0 release (or later).
- Upgrade Path – Download the latest CODESYS Visualization installer from the official CODESYS website and install it over the existing installation.
- Rollback – If an upgrade is not immediately possible, apply the following workaround.
- CVSS Score: 8.8 (High) – indicates a severe risk with low exploitation complexity.
- CISA KEV: No – the vulnerability is not listed as a known exploit in the KEV database, but that does not reduce its risk.
- Exploit Complexity: Low – the attacker only needs to control a runtime or perform a MITM; no privileged access is required.
⚡ Attack Chain
| Step | Description | Technical Detail |
|---|---|---|
| 1. Discovery & Reconnaissance | Identify CODESYS Visualization 4.11.0.0 installations on the network. | • Scan for the default CODESYS Control port (usually TCP 5080) and the visualization service port (often TCP 5081). <br>• Query the /version endpoint (if exposed) or inspect the CODESYS banner in the TCP handshake. <br>• Verify that the workstation is running the vulnerable visualization client (e.g., by checking the CODESYS client version string in the UI or in the CODESYS log files). |
| 2. Exploitation | Deliver malicious runtime‑supplied visualization data that contains executable payload. | Illustrative PoC (the exact endpoint is not published in the CVE; the following demonstrates the payload structure that the vulnerable component will accept):<br><br>``json\n{\n \"title\": \"Engine Status\",\n \"data\": {\n \"temperature\": 75,\n \"pressure\": 1.2,\n \"script\": \"powershell -nop -c 'Start-Process calc.exe'\"\n }\n}\n`\n* The script field is a placeholder for any code that the visualization engine will execute. <br>* The attacker can send this JSON to the runtime’s API endpoint (e.g., POST /api/visualization/data) or inject it via a MITM that rewrites the payload on the fly. <br>* When the workstation renders the visualization, the embedded PowerShell command runs with the user’s privileges, spawning calc.exe` (or any other command). <br>Note: The exact URI and parameter names are not disclosed; the above is a representative example of how the flaw can be exercised. |
| 3. Post‑exploitation | Achieve full impact on the engineering workstation. | • Privilege Escalation – The code runs with the logged‑in user’s rights; if that user is an administrator, the attacker gains full control. <br>• Persistence – The attacker can drop a backdoor (e.g., a scheduled task, a malicious service, or a hidden executable). <br>• Data Exfiltration – The attacker can read PLC configuration files, logs, or any other sensitive data on the workstation. <br>• Lateral Movement – From the compromised workstation, the attacker can pivot to other devices on the plant network. |
🌍 Real World Impact
| Impact | CVSS Vector | Explanation |
|---|---|---|
| Confidentiality | H | Arbitrary code execution allows the attacker to read any file the user can access, including PLC configuration, credentials, or proprietary process data. |
| Integrity | H | The attacker can modify PLC logic, overwrite configuration files, or tamper with logs, potentially causing unsafe plant operation. |
| Availability | H | The attacker can crash the visualization client, terminate the CODESYS Control runtime, or install malware that disrupts normal operation, leading to downtime. |
| Scope | N | The vulnerability does not affect other components or systems directly; it is limited to the workstation running the visualization client. |
Practical consequences
🛡️ Remediation & Mitigation
Affected Versions
Vendor Fix
Workarounds
| Mitigation | How to Implement |
|---|---|
| Disable Runtime‑Supplied Data | In the CODESYS Visualization client, disable the option that allows the runtime to push data. This is typically found under *Settings → Runtime Communication → Allow Runtime Data*; set it to *Disabled*. |
| Network Segmentation | Place the engineering workstations on a separate VLAN and restrict inbound traffic to the CODESYS Control runtime port to only known, trusted devices. |
| TLS Enforcement | Enable TLS for the communication channel between the runtime and the workstation. This prevents MITM attacks that could inject malicious payloads. |
| Endpoint Protection | Deploy an endpoint protection platform that blocks execution of untrusted scripts or macros on the workstation. |
| User Training | Instruct users to verify the identity of the runtime before opening a visualization, especially when connecting to unfamiliar devices. |
Detection
| Indicator | Log Pattern | How to Detect |
|---|---|---|
| Unexpected script execution | INFO: Executing script: powershell -nop -c '...' | Monitor the CODESYS Visualization logs for any Executing script entries that contain PowerShell, CMD, or other shell commands. |
| Unusual network traffic | MITM detected on port 5081 | Inspect network logs for TLS handshake failures or traffic anomalies on the visualization port. |
| File creation | File created: C:\Temp\malicious.exe | Use file integrity monitoring to detect new executables in system directories. |
| Process creation | Process started: calc.exe | Watch for processes that are launched by the visualization client that are not part of normal operation. |
⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query