Summary
The CODESYS Control runtime system's CmpAuditLog component allows potentially unauthenticated remote attackers to control the format string of processed log messages. Due to the internal processing logic, the impact is limited to a crash of the CODESYS Control runtime.
Details
Impact
Exploitation of this vulnerability can lead to a denial-of-service (DoS) condition on affected PLCs, disrupting industrial control systems.
Mitigation
As a mitigation, the Audit Log feature can be disabled in the CODESYS Control runtime configuration file. When the Audit Log logger is not enabled, the affected functionality is no longer exposed and the vulnerability cannot be exploited.
To disable the Audit Log feature, use the following settings. Depending on your existing configuration, the logger index may vary.
[CmpLog]
Logger.0.Name=.Audit.log
Logger.0.Enable=0
Remediation
Update the following products to version 3.5.22.0.
* CODESYS Control RTE (SL)
* CODESYS Control RTE (for Beckhoff CX) SL
* CODESYS Control Win (SL)
* CODESYS Runtime Toolkit
Update the following products to version 4.21.0.0.
* 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/.
Vulnerabilities 1
-
High 7.5
CODESYS Control Audit Log Format String DoS
An unauthenticated remote attacker may be able to control the format string of messages processed by the Audit Log of the CODESYS Control runtime system, potentially resulting in a denial‑of‑service (DoS) condition.
Revision history
-
#1.1.0
Updated remediation category - fixed SL runtimes are now available. Updated mitigation category - clarified description.
-
#1.0.0
Initial revision.
References
-
CERT@VDE Security Advisories for CODESYS GmbH
https://www.certvde.com/en/advisories/vendor/codesys
-
Advisory2026-03_VDE-2026-018: CODESYS Control V3 - Externally-controlled format string in Auditlog - HTML
https://www.certvde.com/en/advisories/VDE-2026-018/
-
CODESYS Security Advisories
https://www.codesys.com/security/security-reports.html
-
Advisory2026-03_VDE-2026-018: CODESYS Control V3 - Externally-controlled format string in Auditlog - PDF
https://api-www.codesys.com/fileadmin/user_upload/CODESYS_Group/Ecosystem/Up-to-Date/Security/Security-Advisories/Advisory2026-03_CDS-95911.pdf