CODESYS Control Flaw Lets Attackers Run Code on PLCs
CVE-2026-127148 is a CVSS 9.8 out-of-bounds write in CODESYS Control. Half the 26 affected products have a fix now; Linux runtimes wait for December.

CODESYS GmbH disclosed CVE-2026-127148 this week through CERT@VDE, a critical flaw in CODESYS Control, the runtime inside PLCs from many manufacturers, The Hacker News reported. CERT@VDE scored it CVSS 9.8. An attacker with network access to the controller’s online services, the interface used to program and manage it, can run code without a password and without user action. No exploitation was known when CISA assessed it earlier this week.
What to do
- Work out which of your controllers run CODESYS Control. Device makers embed it, so the affected list spans Beckhoff CX controllers, WAGO touch panels, PLCnext and Raspberry Pi products.
- For the 13 products with a fix, update to 3.5.22.50. Affected versions run from 3.0.0.0 up to, but not including, that build. The group includes Control RTE (SL), Control Win (SL), Runtime Toolkit, Gateway, HMI (SL), Safety SIL2 and Development System 3.
- For the other 13 products, including Control for Linux SL, Linux ARM SL, Raspberry Pi SL, PFC100/PFC200 SL, PLCnext SL and Virtual Control SL, the fix is release 4.24.0.0, planned for December 2026. Affected versions there run from 3.5.0.0 up to, but not including, 4.24.0.0.
- Until your unit is patched, keep the controller’s online services off any network an untrusted party can reach. The source describes no vendor workaround beyond updating, so segmentation is your lever.
How to prioritize
The flaw is an out-of-bounds write in the two components that handle online-service traffic. Patch internet-reachable or flat-network controllers first. Then do engineering workstations, since the Development System’s simulation runtime is in scope. The Linux-based runtimes are the awkward group: there is no patch yet, so isolation is all you have for now.
Whether the flaw could defeat a deployed, certified safety function has not been demonstrated, so don’t assume the Safety SIL2 runtime is either safe or broken. Check the vendor advisory for your specific product.
Part of a larger research project
The bug is the most serious finding of PLC2SHELL, research that Limes Security made public on Wednesday. The project found about 40 vulnerabilities across CODESYS Control, CODESYS Visualization and engineering components, and 11 now carry CVE numbers. Researchers demonstrated code execution on Windows, Linux and VxWorks runtimes and on a physical Schneider Electric Modicon M241 controller, all in the lab. About 30 findings remain under coordinated disclosure, and exploitation details are being held back until patches are widely deployed. The CVE record also credits Luca Borzacchiello of Nozomi Networks.
The other ten published CVEs ask more of an attacker. Four in the same advisory score 4.3 to 7.1 and need an authenticated account. Four affect CODESYS Visualization before 4.11.0.0, fixed last week, and need a signed-in user plus an attacker-controlled or tampered runtime connection. Two affect only Linux and QNX builds and need an authenticated account.
Analysis: with about 30 more findings still undisclosed, expect further advisories for this runtime in 2027. Building a patching path for embedded CODESYS devices now will pay off more than a one-off fix.
More ICS coverage: Siemens IoT2050 Node-RED flaw exploited by botnet, US agencies warn of attacks on refrigeration controllers and OpenRemote MQTT flaw lets anonymous clients pose as devices. See the ICS/OT hub.
Found this useful? Share it.


