Critical CODESYS flaw: which PLCs are affected and what to do
By Jorge Graells · December 2, 2026 at 6:18 AM UTC · 5 min read
CVE-2026-127148 is a critical CODESYS flaw that lets anyone on the network run code on a PLC without a username or password. Windows versions already have a fix; the Linux versions, such as those for WAGO PFC200 or Raspberry Pi, are due one in December. Which devices are affected and how to protect them.
Critical CODESYS flaw: which PLCs are affected and what to do
- Type
- News
- Author
- Jorge Graells
- Date
- Reading time
- 5 min read
- Topics
- Cybersecurity, IoT and industrial
- Subjects
Summary
CVE-2026-127148 is a critical CODESYS flaw that lets anyone on the network run code on a PLC without a username or password. Windows versions already have a fix; the Linux versions, such as those for WAGO PFC200 or Raspberry Pi, are due one in December. Which devices are affected and how to protect them.
On 30 November a critical flaw was published in CODESYS, the software used to program and run a large number of industrial controllers (PLCs). According to NIST's record for CVE-2026-1271481, it lets an attacker who can reach the device over the network, with no username or password, run whatever code they like on it. Spain's national cybersecurity institute, INCIBE, covered it in its industrial control systems advisory of 1 December2, along with four other flaws disclosed at the same time.
The Windows versions already have a fix. The Linux versions, which include those for Raspberry Pi, IOT2000, PLCnext and WAGO's PFC100 and PFC200 controllers, are due to get theirs this December. Until then, what protects those devices is making sure nobody who shouldn't can reach them over the network.
This story will be updated as new information comes in.
◢What is CODESYS, and why could it affect you without you knowing?
CODESYS is software for programming industrial controllers, and it also includes the part that runs those programs inside the device, known as the runtime. The flaw is in that runtime.
The list of affected products published by INCIBE2 gives a sense of where it can turn up: versions for Windows and Linux, for boards such as Raspberry Pi and BeagleBone, for the IOT2000, for WAGO's PFC100 and PFC200 controllers and Touch Panels 600, for PLCnext, gateways, operator panels (HMIs) and the Runtime Toolkit, the kit a manufacturer uses to build CODESYS into its own controller.
So even if the name CODESYS appears nowhere in your plant, it may be running inside a PLC, a panel or a box an integrator installed years ago.
◢What is the CVE-2026-127148 flaw?
According to the NIST record1, two runtime components, CmpChannelMgr and CmpChannelMgrEmbedded, don't properly check the length of the online service packets they receive. That leads to an out-of-bounds memory write. With a specially crafted packet, an unauthenticated remote attacker can execute arbitrary code on the device.
CERT@VDE, which coordinated the disclosure with CODESYS, scores it 9.8 out of 10 under CVSS 3.1 and 9.3 under CVSS 4.0, both rated critical. In the same record, CISA's assessment says three things: there is no known exploitation, it can be exploited in an automated way, and the technical impact is total. On a PLC, someone running their own code can mean changing what the machine does or stopping it.
◢What other flaws were disclosed?
The INCIBE advisory2 lists five vulnerabilities: one critical, three high and one medium. The other four require the attacker to already have an account on the device. According to NIST, they could be used to:
- ▹Change the redundancy configuration or make the PLC stop controlling the process (CVE-2026-1271493).
- ▹Cause a denial of service with a crafted request (CVE-2026-1271474).
- ▹Find out whether certain files exist on the system and cause a denial of service, with high privileges (CVE-2026-1271505).
- ▹Change the persistence of debug breakpoints set by a legitimate user (CVE-2026-1271466).
◢Which versions are affected, and which ones fix it?
INCIBE splits the products into two groups.
The first covers versions from 3.0.0.0 up to, but not including, 3.5.22.50. It includes CODESYS Control RTE, Control Win, the Runtime Toolkit, Embedded Target Visu Toolkit, Remote Target Visu, Safety SIL2, Gateway, Edge Gateway for Windows, HMI, OPC DA Server, PLCHandler and the Development System's simulation runtime. The fix is to update to 3.5.22.50: the Development System and its add-ons are updated through CODESYS Installer, and the rest are in the CODESYS download area.
The second covers versions from 3.5.0.0 up to, but not including, 4.24.0.0. These are the Linux versions: Control for Linux and Linux ARM, BeagleBone, emPC-A/iMX6, IOT2000, PFC100, PFC200, PLCnext, Raspberry Pi, WAGO Touch Panels 600, Virtual Control, Edge Gateway for Linux and TargetVisu for Linux. CODESYS plans to release 4.24.0.0 in December 2026, according to INCIBE2, so for now there is no fixed version for them.
◢Is it being exploited yet?
According to the NIST record and the INCIBE advisory, there are no reports of attacks using these flaws. Even so, this is one to deal with early: no username or password is needed, reaching the device over the network is enough and, according to CISA's assessment, it can be automated.
◢What to do if your plant runs CODESYS
- ▹Take stock. Ask your integrator and your machine builders which PLCs, panels and gateways run CODESYS, and which version. If a controller is from another brand, ask whether it includes the affected runtime and when its fixed firmware will be out.
- ▹For products in the first group, update to 3.5.22.50. Do it with your integrator and during a planned shutdown, never live on a running line.
- ▹For those in the second group, until 4.24.0.0 arrives, apply the measures INCIBE lists: use a firewall to limit access to the CODESYS protocol services to trusted hosts, segment the control network and don't expose the devices directly to the internet.
- ▹If someone needs remote access, it should be through a VPN with strong authentication, as the advisory says. Check for vendor access that nobody remembers opening, too.
- ▹Make sure no PLC can be reached from the internet. I covered how to find out without disrupting production in the article on internet-exposed PLCs.
◢The bigger picture
A PLC is built to be talked to over the network: the engineering workstation loads its program, the panel reads its data and the SCADA system sends it commands. When a flaw like this appears, what decides whether it's a scare or a real problem is who can reach the device. That's why I keep stressing plant network segmentation and controlling vendor remote access: they're what protects you while there's no patch.
If you want your plant and maintenance teams to know how to respond to advisories like this one, it's part of what I cover in my cybersecurity training for companies.
Related documents
- News
WhatsApp will force iPhone users to update iOS over web-based malware
WhatsApp is urging iPhone users to update iOS because a flaw in older versions lets malware infect the phone just by visiting a malicious website. It will log out accounts showing signs of attack and, in the coming weeks, require an updated iOS from everyone.
- News
Anthropic publishes theoretical attack on post-quantum crypto
It wasn't RSA. Anthropic found a theoretical quantum attack on ML-KEM and ML-DSA that is impractical today. What it means and what to do.
- News
Critical WP Rocket flaw exploited: which WordPress sites are at risk
Attackers are exploiting CVE-2026-125812, a flaw in the WP Rocket caching plugin that lets them run PHP code on a WordPress site without a password. It only affects sites with two specific options turned on. It is fixed in version 3.24.2.