CODESYS flaw 9.8 lets attackers run code on controllers: what to do
CVE-2026-127148 needs no login and one branch is still unpatched. No attacks reported yet.
A critical flaw in CODESYS Control, the software that runs inside a large share of industrial controllers, lets an attacker who can reach the device over the network run code on it without logging in. It is tracked as CVE-2026-127148 and scores 9.8 out of 10. CODESYS has already shipped a fix for one branch of the software, and the other branch is still waiting for its patch. No attacks have been reported so far, so this is the moment for plant and building teams to check what they run.
What is confirmed
- The bug is an out-of-bounds write in the components that handle online service traffic (CmpChannelMgr and CmpChannelMgrEmbedded), according to The Hacker News and Daily Security Review. An attacker only needs network access to the controller's online services, and no one has to click anything.
- CODESYS GmbH disclosed it through CERT@VDE as advisory VDE-2026-169. Daily Security Review dates the disclosure to November 30, and The Hacker News covered it on December 3.
- CERT@VDE says it knows of no attacks in the wild and no public exploit code. The Hacker News adds that CISA rated the flaw as automatable, which means that once someone writes an exploit, it could be run at scale.
- The finding is part of a research project called PLC2SHELL, published by Limes Security. About 40 flaws were found, and 11 of them have CVE numbers so far. The researchers say they showed code execution in lab conditions, including on a Schneider Electric Modicon M241 controller. Around 30 more issues are still in coordinated disclosure, so more advisories are likely.
Note that the two sources count the flaws differently: Daily Security Review speaks of nine flaws across three advisories, while The Hacker News talks about the broader research and its 11 CVEs. We use each figure as that outlet reports it.
Which versions need what
| Product line | Affected versions | Fix |
|---|---|---|
| Runtime products, first group | 3.0.0.0 up to but not including 3.5.22.50 | 3.5.22.50, available now |
| Runtime products, second group (includes Linux based runtimes) | 3.5.0.0 up to but not including 4.24.0.0 | 4.24.0.0, planned for December 2026 |
| CODESYS Visualization | Earlier than 4.11.0.0 | 4.11.0.0, available now (four separate CVEs) |
Why this one is awkward
CODESYS is rarely sold directly to the people who use it. Machine and controller makers embed it in their firmware, so the company that runs the plant often cannot install the fix itself. It has to wait for the device maker to release a new firmware, and regulated plants usually retest before they apply anything. That is why the interim advice matters as much as the patch.
What to do
- Ask your automation vendor or integrator whether your controllers run CODESYS Control, and which version. Write it down per device.
- Keep the controllers off the internet and away from untrusted networks. If a controller's online service port is reachable from outside, that is the first thing to fix.
- Use firewalls and network segmentation so only trusted engineering stations can reach the controllers. Remote access should go through a VPN with strong authentication.
- Install 3.5.22.50 for runtime products and 4.11.0.0 for Visualization through the CODESYS Installer or the vendor's download area, or apply the firmware your device maker publishes.
What it means for readers in the US and Mexico
None of the sources says how many devices are exposed in the United States or in Mexico, and we will not guess. What we can say is practical: factories, warehouses and building systems in both countries use controllers from many brands, and any of them can carry this runtime inside. If you manage industrial equipment, in Monterrey or in Texas, the question for your vendor is the same. If you are an ordinary reader with a smart home, this does not touch your devices, and there is nothing to install.
Sources: The Hacker News, Daily Security Review


