Summary
Multiple vulnerabilities in the affected products allow an unauthenticated remote attacker to execute arbitrary code by sending specially crafted online service requests via the CODESYS online protocol. Additional vulnerabilities allow authenticated remote attackers to disclose whether selected files exist on the system, modify redundancy configuration settings or debug-related data, or cause denial-of-service conditions.
Note: Within the CODESYS Development System V3, the simulation runtime is affected.
Impact
Successful exploitation of the most severe vulnerability allow an unauthenticated remote attacker to execute arbitrary code on the affected products, resulting in a complete compromise of confidentiality, integrity, and availability. Other vulnerabilities allow a low-privileged remote attacker to cause a limited loss of integrity or a denial-of-service condition. A further vulnerability allow a high-privileged remote attacker to disclose confidential information to a limited extent.
Affected Product(s)
| Model no. | Product name | Affected versions |
|---|---|---|
| CODESYS Control RTE (SL) | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Control RTE (for Beckhoff CX) SL | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Control Win (SL) | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Control for BeagleBone SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for IOT2000 SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Linux ARM SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Linux SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PFC100 SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PFC200 SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for PLCnext SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for Raspberry Pi SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for WAGO Touch Panels 600 SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Control for emPC-A/iMX6 SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Development System 3 | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Edge Gateway for Linux | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Edge Gateway for Windows | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Embedded Target Visu Toolkit | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Gateway | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS HMI (SL) | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS OPC DA Server SL | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS PLCHandler | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Remote Target Visu | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Runtime Toolkit | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS Safety SIL2 | vers:generic/>=3.0.0.0|<3.5.22.50 | |
| CODESYS TargetVisu for Linux SL | vers:generic/>=3.5.0.0|<4.24.0.0 | |
| CODESYS Virtual Control SL | vers:generic/>=3.5.0.0|<4.24.0.0 |
Vulnerabilities
Expand / Collapse allThe CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime system performs improper length checking when handling online service packets, resulting in an out-of-bounds write. By sending a specially crafted packet, an unauthenticated remote attacker can exploit this flaw to execute arbitrary code on the affected product.
The CmpRedundancy component of the CODESYS Control runtime system does not sufficiently verify authorization for redundancy-related operations. An authenticated, low-privileged remote attacker can exploit this flaw to modify the redundancy-specific configuration or cause the affected CODESYS Control runtime system based PLCs to stop controlling the process.
The CmpSettings component of the CODESYS Control runtime system performs improper length checking when handling online service requests, resulting in an integer underflow. An authenticated, low-privileged remote attacker can exploit this vulnerability by sending a specially crafted request, causing a denial-of-service condition in the affected products.
The CmpOpenSSL component of the CODESYS Control runtime system does not sufficiently check file names for path traversal when processing component-specific online service requests. An authenticated, high-privileged remote attacker can exploit this vulnerability to trigger read access checks on arbitrary files outside the intended directory. Successful exploitation may disclose whether selected files exist on the system and result in a denial-of-service condition.
The CmpAppBP component of the CODESYS Control runtime system does not sufficiently verify authorization for some debug operations. An authenticated, low-privileged remote attacker can exploit this vulnerability to modify the persistence of debug breakpoints set by a legitimate user, resulting in a limited loss of integrity in the affected CODESYS Control runtime system based PLCs.
Mitigation
Restrict network access to the CODESYS online protocol services using firewalls and network segmentation. Allow connections only from trusted systems and networks. Prevent direct exposure of affected devices to untrusted networks, including the Internet. Where remote access is required, use secure VPN connections and strong authentication mechanisms.
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 Runtime Toolkit
* CODESYS Embedded Target Visu Toolkit
* CODESYS Remote Target Visu
* CODESYS Safety SIL2
* CODESYS Gateway
* CODESYS Edge Gateway for Windows
* CODESYS HMI (SL)
* CODESYS OPC DA Server SL
* CODESYS PLCHandler
* CODESYS Development System 3
Update the following products to version 4.24.0.0. The release of this version is planned in 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
* CODESYS Edge Gateway for Linux
* CODESYS TargetVisu for Linux 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 )
- f0rw4rd aka Felix Eberstaller from Limes Security / QuellSec for reporting
- Luca Borzacchiello from Nozomi Networks for reporting
Revision History
| Version | Date | Summary |
|---|---|---|
| 1.0.0 | 11/30/2026 11:00 | Initial revision. |