Summary
The CmpWebServer component in the CODESYS Control Runtime allows users to access browser-based visualizations for monitoring and controlling industrial processes.
Multiple vulnerabilities in the affected products could allow unauthenticated remote attackers to disclose process memory contents, cause denial-of-service conditions, crash the runtime, or potentially execute arbitrary code by sending specially crafted HTTP or WebSocket requests to the CmpWebServer component.
The CODESYS Control runtime system is only affected if the web server is active, which by default requires a running application with an enabled Web Visualization.
Impact
Successful exploitation of these vulnerabilities could allow unauthenticated remote attackers to disclose sensitive information, cause denial-of-service conditions, crash the runtime, or execute arbitrary code on the affected devices.
Affected Product(s)
| Model no. | Product name | Affected versions |
|---|---|---|
| CODESYS Control RTE (SL) | vers:generic/>=3.5.22.0|<3.5.22.50, vers:generic/>=3.5.0.0|<3.5.22.50 | |
| CODESYS Control RTE (for Beckhoff CX) SL | vers:generic/>=3.5.22.0|<3.5.22.50, vers:generic/>=3.5.0.0|<3.5.22.50 | |
| CODESYS Control Win (SL) | vers:generic/>=3.5.22.0|<3.5.22.50, vers:generic/>=3.5.0.0|<3.5.22.50 | |
| CODESYS Control for BeagleBone SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for IOT2000 SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Linux ARM SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Linux SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PFC100 SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PFC200 SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PLCnext SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Raspberry Pi SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for WAGO Touch Panels 600 SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for emPC-A/iMX6 SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS HMI (SL) | vers:generic/>=3.5.22.0|<3.5.22.50, vers:generic/>=3.5.0.0|<3.5.22.50 | |
| CODESYS Runtime Toolkit | vers:generic/>=3.5.22.0|<3.5.22.50, vers:generic/>=3.5.0.0|<3.5.22.50 | |
| CODESYS Virtual Control SL | vers:generic/>=4.21.0.0|<4.24.0.0, vers:generic/>=3.5.0.0|<4.24.0.0 |
Vulnerabilities
Expand / Collapse allThe affected products contain a use-after-free vulnerability in the WebSocket handling of the web server component. An unauthenticated remote attacker can send specially crafted WebSocket frames to trigger access to a previously released connection object. Successful exploitation may result in remote code execution if the attacker has previously obtained sufficient information about the memory layout of the runtime process on the targeted device.
The affected products contain a use-after-free vulnerability in the WebSocket handling of the web server component. An unauthenticated remote attacker can send a specially crafted WebSocket frame that triggers access to an already released connection object, causing a denial-of-service condition and potentially crashing the affected device.
The affected products perform insufficient validation of length values when processing WebVisu HTTP or WebSocket requests, resulting in an integer underflow. An unauthenticated remote attacker can exploit this flaw to trigger an out-of-bounds read to disclose process memory contents on the affected device.
Mitigation
For CVE-2026-79626 and CVE-2026-127071:
Disable the WebSocket of the endpoint if it is not required, by adding the following setting in the configuration file of the CODESYS Control runtime system (CODESYSControl.cfg) in the section
[CmpWebServer]
WebSocketSupportDisabled=1
Remediation
Update the following products to version 3.5.22.50.
* CODESYS Control RTE (SL)
* CODESYS Control RTE (for Beckhoff CX) SL
* CODESYS Control Win (SL)
* CODESYS HMI (SL)
* CODESYS Runtime Toolkit
Update the following products to version 4.24.0.0. The release of this version is planned for December 2026.
* CODESYS Control for BeagleBone SL
* CODESYS Control for emPC-A/iMX6 SL
* CODESYS Control for IOT2000 SL
* CODESYS Control for Linux ARM SL
* CODESYS Control for Linux SL
* CODESYS Control for PFC100 SL
* CODESYS Control for PFC200 SL
* CODESYS Control for PLCnext SL
* CODESYS Control for Raspberry Pi SL
* CODESYS Control for WAGO Touch Panels 600 SL
* CODESYS Virtual Control SL
The CODESYS Development System and the products available as CODESYS add-ons can be downloaded and installed directly with the CODESYS Installer or be downloaded from the CODESYS Store. Alternatively, as well as for all other products, you will find further information on obtaining the software update in the CODESYS Update area https://www.codesys.com/download/.
Acknowledgments
CODESYS GmbH thanks the following parties for their efforts:
- CERT@VDE for coordination (see https://www.certvde.com )
- Luca Borzacchiello from Nozomi Networks for reporting
- QuietHours.eu for reporting
Revision History
| Version | Date | Summary |
|---|---|---|
| 1.0.0 | 30.11.2026 11:00 | Initial revision. |