CODESYS Control packet length handling: an unauthenticated out-of-bounds write in the online service path
CVE-2026-127148 affects the CODESYS Control runtime system, which sits behind engineering workstations, HMI software, and automation applications. The CmpChannelMgr and CmpChannelMgrEmbedded components perform improper length checking when handling online service packets. The result is an out-of-bounds write that an unauthenticated remote attacker can reach with a crafted packet.
Why engineering protocols deserve separate treatment
Industrial control systems often rely on network trust and fixed protocol endpoints. An operator may assume that only engineering hosts can reach the runtime, while the actual network path also includes remote-support systems, VPN clients, gateways, and misconfigured firewall rules.
The advisory rates the issue 9.8 Critical. A packet that crosses the online-service boundary can corrupt memory before an authenticated session is established. The consequences may include a runtime crash, loss of process visibility, or arbitrary code execution in the controller runtime's context.
Inventory the runtime, not just the project
The engineering project version does not prove which runtime is installed. Collect the runtime product name, installed version, build, operating system, and service exposure from each controller or software PLC. Record which hosts can initiate connections to its online-service port.
Review segmentation for both east-west and remote-support paths. Restrict the runtime to designated engineering systems rather than entire user VLANs. Keep a separate inventory of devices that are no longer maintained but still run production processes.
Remediation
Apply the CODESYS Security Advisory 2026-17 fix for each affected runtime family. The advisory identifies 3.5.22.50 for one product group and plans 4.24.0.0 for another in December 2026. Product coverage differs, so administrators should match the exact runtime entry in the vendor table rather than treating one release number as universal.
Until the runtime is fixed, block online-service traffic at the controller boundary and from all untrusted networks. Test the change with the engineering team because firewall or gateway rules may also carry legitimate diagnostics and deployment sessions.
After updating, verify the installed build on the target, test a project download, and inspect controller and network logs for repeated malformed packets. A clean network scan does not prove that a proprietary industrial service is patched.

