Millions of PLCs At Risk From 40 New CODESYS Bugs
Vulnerabilities in programmable logic controllers (PLCs) could expose safety-critical machinery to attacks, and patching isn’t a simple solution.
Researchers have discovered approximately 40 vulnerabilities in a program used in millions of sensitive industrial controllers around the world.
The program, CODESYS, is used for programming and running applications on programmable logic controllers (PLCs) for operational technology (OT) systems. According to its vendor’s website, more than 500 manufacturers build CODESYS runtime into their devices. Manufacturing giants like Schneider Electric and ABB use a rebranded version as the core of their PLC environments. Overall, more than 10 million devices in the field today utilize CODESYS.
Limes Security recently identified around 40 vulnerabilities in CODESYS, though that isn’t necessarily to imply that every single device built with it possesses all 40. That many newly discovered vulnerabilities in any software would be cause for concern, but doubly so for an engine responsible for running PLCs, which are crucial for industrial operations. They automatically read sensors and switches, run programmed logic, and output commands to the motors, valves, pumps, and other critical systems that keep plants running, and safe.
In fact, even the sensitivity of PLCs isn’t sufficient to underscore the risk here. Among the products affected is CODESYS Safety SIL2, an add-on that allows device manufacturers to build and program safety-specific controllers that protect potentially dangerous machinery.
40 Newfound Bugs for PLCs
The most severe vulnerability of the bunch, CVE-2026-127148, is a memory corruption issue. It’s pre-authentication, requiring no credentials to exploit. It earned a “critical” 9.8 out of 10 CVSS score.
Limes researchers report having developed a reliable exploit for CVE-2026-127148 that even break through memory-specific defense-in-depth protections like Address Space Layout Randomization (ASLR). Developing the exploit was “not trivial,” they wrote, though that means less in the age of frontier AI.
The other highest-severity vulnerabilities affected Visualization, CODESYS’s built-in graphical human-machine interface designer. Three vulnerabilities, resulting from insufficient restrictions over runtime-supplied visualization data and commands, all earned “high” 8.8 CVSS scores, and could allow attackers to execute code on host PLCs. In general, the researchers chose to withhold specific details of their discoveries, as fixes have not yet been fully rolled out.
PLCs shouldn’t be within reach of Internet attackers, as they belong to non-public-facing, more cautiously protected industrial control networks. Yet through scanning, the researchers were able to find just over 1,000 CODESYS devices reachable from the Web. Half of those devices were manufactured by German manufacturer WAGO, and most were located in the US and Europe.
Patching: Necessary, but Complicated
Limes Security recommended that operators and manufacturers identify affected CODESYS systems, restrict network access to them, monitor relevant traffic, and, of course, apply updates. Though this represents a fairly standard slate of suggestions, they aren’t all as easy to implement as they might seem. For one thing, the researchers noted that because CODESYS is so often used as a white label product, operators might be running CODESYS-based devices they don’t even yet know about.
Patching is also complicated by that fact. While the vendor, CODESYS Group, has been rolling out fixed versions in November and December, different manufacturers will have to integrate and release their own unique fixes for their own CODESYS-integrated firmwares.
Then there’s the fact that patching isn’t without its drawbacks. “Every patch risks making a mistake — in the implementation of the patch or in the course of applying the patch,” explains Andrew Ginter, vice president of industrial security for Waterfall Security Solutions. When it comes to industrial systems, “Some mistakes can kill people. When consequences of mistakes are unacceptable, we have to plan our patches. Analyze them. Document them. Test them, exhaustively. Practice them. Have people review our plans and analyses and testing.”
Patching is the most expensive activity many industrial control systems facilities undertake routinely, and it’s much less beneficial than most people imagine, Ginter argues. “Patching (if it’s done right, if the patch is effective, if the patch does not introduce more vulnerabilities than it eliminates) eliminates known vulnerabilities,” he says. “It does nothing about zero-days, nor abuse of credentials and permissions, nor man-in-the-middle (MitM) attacks intercepting plain text commands, and other attacks. Extremely expensive for our most sensitive systems, and of limited benefit for those same systems.”
Because patching is so delicate, so laborious, and so incomprehensive in industrial contexts, Ginter offers a different solution: simply ensure that safety instrumented systems (SIS) can’t touch your industrial control network, under any circumstances.
“The key question is: Is it reasonable to expect that a cyberattack can reach into and disable SIS, while mis-operating the control system, PLCs, or other devices in a way that could bring about an unsafe condition? If it’s a credible attack, we must not expose both our SIS and ICS,” he argues. The way to both manage industrial networks while not exposing safety systems, he adds, is through engineering-grade security solutions such as unidirectional, hardware-enforced security gateways, and mechanical fail-safes.
“Network engineering techniques enable online monitoring and extremely limited control of SIS,” Ginter says, “without exposing them to attacks pivoting through OT networks.”
Originally published on Dark Reading