One packet, no password, and the factory controller is yours
About 40 flaws in CODESYS, the runtime inside millions of industrial controllers. The worst needs no login, and the fix runs through 500 manufacturers.

On December 2, researchers at the Austrian security firm Limes Security published the first findings of a project they call PLC2SHELL: about 40 vulnerabilities in CODESYS, the software runtime that programs and runs programmable logic controllers in factories, power plants, and water systems. The worst of them, CVE-2026-127148, scores 9.8 out of 10 and lets an attacker run code on a controller by sending a single crafted packet. No login is needed. Limes says there is currently no evidence of active exploitation.
CODESYS is not a name most people outside industrial automation would recognize, and that is part of the problem. More than 500 manufacturers build its runtime into their devices, covering about 1,000 device types and well over 10 million controllers in use, according to the vendor. Schneider Electric, ABB, WAGO, Phoenix Contact, Festo, and ifm all use it.
The runtime is often embedded under the manufacturer's own brand, so an operator can be running CODESYS without knowing it. Limes is careful to say the manufacturer list does not mean those companies' products are affected. Whether a given device is vulnerable depends on which CODESYS component and version it runs.
The flaw sits in the channel manager components, CmpChannelMgr and CmpChannelMgrEmbedded, which handle packets for the CODESYS online protocol. That protocol is the channel engineers use to download programs, debug, and watch variables on a controller. The components did not check the length of incoming packets properly, so a crafted packet writes past the end of a buffer. That out-of-bounds write, classified as CWE-787, is what makes remote code execution possible.
Limes says it built a reliable exploit that still works when the operating system randomizes the program's memory layout, a standard defense against memory corruption, and demonstrated code execution on Windows, Linux, and VxWorks runtimes, plus a physical Schneider Electric Modicon M241 controller. The researchers are withholding the exploit details while fixes roll out.
The safety controller is on the list too
The affected-products list includes CODESYS Safety SIL2, the runtime for safety controllers. Those are the systems that watch for dangerous conditions and shut a machine down, the last line of defense when the ordinary controller misbehaves. A flaw that hands an attacker control of the controller can also impair the safety function that is supposed to protect people and equipment. That is the detail that lifts this above an ordinary critical CVE.
The other flaws disclosed so far are narrower. Three in CODESYS Visualization, the graphical interface designer, score 8.8 each and could let a tampered runtime or an attacker sitting in the middle execute code on the engineering workstation.
The remaining Control flaws need an attacker to already hold an account. One at 7.1 lets a low-privileged user change redundancy settings or stop the PLC from controlling its process. The rest are denial of service and information disclosure at 6.5 and below.
Eleven of the roughly 40 findings have CVE numbers so far. The rest are still in coordinated disclosure, with more write-ups and a conference presentation planned for 2027. The flaws were reported to CODESYS in July through CERT@VDE, the German coordination body, which published the advisories on November 24 and 30.
The fix exists. Reaching the factory floor is the hard part
CODESYS has shipped fixed versions, but only for half the product line. Windows-based runtimes update to 3.5.22.50 now, and Visualization to 4.11.0.0. The Linux-based runtimes, which include the Raspberry Pi, BeagleBone, PLCnext, and WAGO PFC controllers, wait for version 4.24.0.0, planned for December 2026.
That release is only the start of the chain. Each manufacturer has to integrate the patched runtime into its own firmware and ship its own update, and each operator then has to find a maintenance window, because updating a PLC usually means stopping the process it controls. In regulated or safety-critical settings, a firmware change can require retesting or recertification. Devices that are no longer supported may never be updated at all.

That slow chain is the real story of this disclosure, and it runs in the opposite direction from the rest of the industry. In enterprise software, the gap between a patch and a working exploit has collapsed to days, with automated frameworks diffing patches to build exploits. Google's threat researchers documented that compression in November, when they caught an AI framework turning freshly published patches into working exploits with no human in the loop. Here the gap runs the other way. The fix is published, and months pass before it reaches the machines.
Exposure is not hypothetical. Limes scanned for CODESYS devices reachable from the internet and found just over 1,000 of them, half built by WAGO and most located in the United States and Europe. Controllers belong on segmented industrial networks, not the open internet. The scan shows how often that rule is already broken.
Keep the controllers off the open internet
CERT@VDE's mitigation is blunt. Restrict access to the CODESYS online protocol to trusted systems and networks, keep affected devices off the internet entirely, and use a VPN with strong authentication for remote access. Limes adds to the list: find every CODESYS runtime in the plant, including the ones hiding inside another vendor's firmware; apply 3.5.22.50 and 4.11.0.0 now; plan for 4.24.0.0 when it lands; and watch CODESYS traffic for connections from unexpected systems.
Andrew Ginter, vice president of industrial security at Waterfall Security Solutions, told Dark Reading that patching is the most expensive activity many industrial facilities undertake routinely, and that it fixes known flaws while doing nothing about zero-days, stolen credentials, or intercepted commands. His answer is architectural: safety instrumented systems should not be able to touch the industrial control network under any circumstances, with hardware-enforced one-way gateways and mechanical fail-safes doing the separating. It is a harder fix than a patch, and it is the one that survives the next forty flaws.
The December release of 4.24.0.0 starts a second clock, the months manufacturers need to integrate it and operators need to schedule it. Until that clock runs out, the defense is the network boundary. A controller that cannot be reached from the internet cannot be taken over by a packet sent from it. The researchers found more than a thousand that could.


