Act nowDisclosed

Advisory · CVE-2026-127148

Unauthenticated remote code execution in CODESYS Control runtime via crafted online service packets

The CmpChannelMgr components of the CODESYS Control runtime system fail to check packet lengths when handling online service requests, allowing an unauthenticated remote attacker to trigger an out-of-bounds write and execute arbitrary code on the controller. Scored CVSS 3.1 9.8 and CVSS 4.0 9.3. Fixed in 3.5.22.50, with 4.24.0.0 planned for December 2026 for the Linux-family products.

Vendor
CODESYS
Product
CODESYS Control
Identifier / CWE
CVE-2026-127148
CWE-787
Action timing
Immediate
ELI5

Explain it like I’m five

A CODESYS controller listens for programming and monitoring messages over the network. One part of that listener does not check how long an incoming message claims to be before copying it, so a stranger on the network can send a rigged message that spills over into neighboring memory and takes over the controller.

SIMPLIFIED_ATTACK_PATH05 STEPS
  1. 01Reach the online protocol

    The attacker reaches a CODESYS online protocol service on an exposed controller or runtime.

  2. 02Crafted service packet

    The attacker sends a specially crafted online service packet to the CmpChannelMgr or CmpChannelMgrEmbedded component.

  3. 03Length check missed

    The component performs improper length checking when handling the packet.

  4. 04Out-of-bounds write

    The crafted packet triggers a write past the end of the intended buffer.

  5. 05Code runs on the controller

    The memory corruption is leveraged into arbitrary code execution on the affected product, with no authentication required.

What happened

The CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime system perform 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 vulnerability is rated CVSS 3.1 9.8 and CVSS 4.0 9.3, and it was disclosed in the CERT@VDE advisory VDE-2026-169 on November 30, 2026, alongside several lower-severity flaws in the same runtime.

Affected are CODESYS Control RTE (SL), Control RTE for Beckhoff CX (SL), Control Win (SL), Runtime Toolkit, Embedded Target Visu Toolkit, Remote Target Visu, Safety SIL2, Gateway, Edge Gateway for Windows, HMI (SL), OPC DA Server SL, PLCHandler, and the Development System 3 simulation runtime, in versions from 3.0.0.0 up to but not including 3.5.22.50. The Linux-family products (BeagleBone, IOT2000, Linux ARM, Linux, PFC100, PFC200, PLCnext, Raspberry Pi, WAGO Touch Panels 600, emPC-A/iMX6, Virtual Control, Edge Gateway for Linux, TargetVisu for Linux) are affected from 3.5.0.0 up to but not including 4.24.0.0.

The vendor remediation is to update the 3.5 line products to version 3.5.22.50, which is available now, and the Linux-family products to version 4.24.0.0, whose release is planned for December 2026. Until the 4.24.0.0 release, those products have no patch, and network-level mitigation is the only defense.

What to do

  1. Inventory every CODESYS-based controller, runtime, and gateway in the estate, including the Development System simulation runtime and any device running a Linux-family Control SL product.
  2. Update the 3.5 line products to version 3.5.22.50 using the CODESYS Installer or the CODESYS Store.
  3. For Linux-family products awaiting 4.24.0.0, restrict network access to the CODESYS online protocol services with firewalls and segmentation, allowing connections only from trusted systems.
  4. Do not expose CODESYS online protocol services to untrusted networks or the internet; where remote access is required, use a secure VPN with strong authentication.
  5. Review controller and network logs for unexpected online service requests, unexplained restarts, or connections from untrusted addresses.
  6. Plan the 4.24.0.0 upgrade for December 2026 and verify the deployed runtime version on every device after updating.

Management note

This is unauthenticated remote code execution against the controllers that run physical processes, and half the product line has no patch until December. Patch the 3.5 line now and treat network isolation as the patch for the rest until 4.24.0.0 ships. A controller reachable from an untrusted network is the exposure to close first.