Research

CODESYS CVE-2026-127148: No-Password Code Execution on PLCs. Update to 3.5.22.50, Wall Off Linux Runtimes Until 4.24

CODESYS CVE-2026-127148: No-Password Code Execution on PLCs. Update to 3.5.22.50, Wall Off Linux Runtimes Until 4.24

If you run anything built on CODESYS, do this today. First, make sure no CODESYS runtime can be reached from the internet or from any network you do not trust: put it behind a firewall that only lets your engineering workstations and HMIs talk to it, and use a VPN with strong authentication for remote access. Second, update the Windows-family runtimes and the Development System to 3.5.22.50. Third, for the Linux-family runtimes (Raspberry Pi, PFC100/PFC200, PLCnext, Linux SL, Virtual Control and others), there is no fix yet: 4.24.0.0 is "planned in December 2026," so segmentation is your only control until then. Fourth, if your CODESYS runtime came inside a manufacturer's controller, ask that manufacturer when its firmware will carry the fix, because you may not be able to install the CODESYS update yourself.

A public proof-of-concept repository for this bug appeared on GitHub on December 1, 2026. No exploitation in the wild has been reported. The gap between those two sentences is your patch window.

What CODESYS and CERT@VDE say

CERT@VDE advisory VDE-2026-169 (CODESYS Security Advisory 2026-17, "CODESYS Control - multiple vulnerabilities"), published November 30, 2026, describes "Unauthenticated remote code execution via crafted CODESYS online protocol requests." The critical one:

  • CVE-2026-127148, CVSS 9.8, out-of-bounds write (CWE-787). The CmpChannelMgr components mishandle the length of online service packets, which lets an attacker run code on the controller without logging in.

The same advisory lists four lower-impact bugs that need an authenticated user: CVE-2026-127149 (7.1, a low-privileged user can change redundancy settings or halt process control), CVE-2026-127147 (6.5, denial of service), CVE-2026-127150 (5.5, path traversal in CmpOpenSSL) and CVE-2026-127146 (4.3, breakpoint persistence).

The advisory also says the simulation runtime inside CODESYS Development System V3 is affected. That puts engineering workstations in scope, not just controllers on the plant floor.

Affected products and fixed versions

The advisory names 26 products in two groups.

Group 1, from 3.0.0.0 up to (not including) 3.5.22.50. Fixed in 3.5.22.50, available now through the CODESYS Installer, the CODESYS Store or the CODESYS download area:

  • CODESYS Control RTE (SL), and Control RTE (for Beckhoff CX) SL
  • CODESYS Control Win (SL)
  • CODESYS Development System 3
  • CODESYS Edge Gateway for Windows, CODESYS Gateway
  • CODESYS Embedded Target Visu Toolkit, Remote Target Visu
  • CODESYS HMI (SL)
  • CODESYS OPC DA Server SL, PLCHandler
  • CODESYS Runtime Toolkit
  • CODESYS Safety SIL2

Group 2, from 3.5.0.0 up to (not including) 4.24.0.0. Fixed in 4.24.0.0, release "planned in December 2026":

  • CODESYS Control for BeagleBone SL, IOT2000 SL, Linux ARM SL, Linux SL, PFC100 SL, PFC200 SL, PLCnext SL, Raspberry Pi SL, WAGO Touch Panels 600 SL, emPC-A/iMX6 SL
  • CODESYS Edge Gateway for Linux, CODESYS TargetVisu for Linux SL
  • CODESYS Virtual Control SL

Two companion advisories landed in the same cycle. VDE-2026-170 covers two authenticated bugs in the Linux and QNX platform layer (CVE-2026-127167, CVSS 7.2, code execution by a high-privileged user through PLC shell requests; CVE-2026-127168, 4.3, information in a log file), fixed in the same 4.24.0.0 and Runtime Toolkit 3.5.22.50. VDE-2026-154, published November 24, covers CODESYS Visualization before 4.11.0.0: three CVSS 8.8 bugs (CVE-2026-121016, -121017, -121018) that let a malicious or tampered runtime run code on the engineering workstation of a user operating a visualization, plus a low-severity file write (CVE-2026-121019). Fix: Visualization 4.11.0.0. Mitigation from that advisory: "Activate encrypted online communication between the CODESYS Development System and the CODESYS Control runtime."

Is it being exploited?

Not that anyone has reported. The researchers write: "Currently, there is no evidence of active exploitation of the described vulnerabilities." CVE-2026-127148 is not in CISA's Known Exploited Vulnerabilities catalog (we checked catalog version 2026.12.03, released December 3, 2026 at 17:50 UTC). The Hacker News reports the CIRCL record lists exploitation as "none."

What changed this week: a public GitHub repository, dinosn/cve-2026-127148-poc, created December 1, 2026, describes itself as a "PoC for CVE-2026-127148: unauthenticated out-of-bounds write in CODESYS CmpChannelMgr." Its README claims "network-only code execution" against Virtual Control for Linux SL 4.23.0.0 and Control Win 64 3.5.22.40, and says Control Win 64 3.5.22.50 "Rejects the out-of-order block." We have not run it and do not vouch for it. The original researchers say they are withholding exploitation details until patches are widely deployed; this repository is a third party's work, not theirs.

The same README also claims a separate overflow, which it says is "a distinct bug from CVE-2026-127148," that crashed every tested build including 3.5.22.50 when pushed hard enough. CODESYS has not published anything on that, and we cannot confirm it. If it holds, it is one more reason the update is step two here and segmentation is step one.

Why your update may be late: OEM firmware

CODESYS is the runtime inside controllers from many manufacturers, which is why the product list reads like a parts catalog (Beckhoff CX, WAGO PFC100/PFC200 and Touch Panels, PLCnext, Raspberry Pi, IOT2000). The researchers put it plainly: "Most CODESYS runtimes are shipped as part of the manufacturer's firmware," so the device maker has to integrate and release the fix before you can apply it. The CERT@VDE advisory itself does not make a statement about manufacturers; the lag warning comes from the researchers. The practical upshot: a fixed CODESYS release does not mean a fixed controller on your floor. Check your manufacturer's security advisories page, and if you do not see this CVE named, ask. The researchers also warn that some devices may never be patched, which makes segmentation permanent for those.

What to do, in order

  1. Cut the internet path. The advisory: restrict access to CODESYS online protocol services "with firewalls and network segmentation," keep devices off untrusted networks "including the Internet," and use a VPN with strong authentication for any remote access. The researchers: "Do not expose CODESYS runtimes to untrusted networks or the Internet." Their own scan found "1,094 CODESYS devices reachable directly from the internet."
  2. Allow-list the engineering path. Only named engineering workstations, gateways and HMIs should reach a runtime's online services. Everything else on the plant network gets denied.
  3. Update Group 1 now to 3.5.22.50, including the Development System on engineering laptops, because its simulation runtime is affected too.
  4. Update Visualization to 4.11.0.0 and turn on encrypted online communication between the Development System and the runtime.
  5. Group 2 (Linux family): hold the segmentation until 4.24.0.0 ships, then update. Watch the CODESYS download area and CERT@VDE for the release.
  6. OEM controllers: open a ticket with the manufacturer for firmware that carries CODESYS 3.5.22.50 or 4.24.0.0. Regulated and safety-rated plants may need to retest before installing, so start the paperwork now.
  7. Disable what you do not use. The advisory does not name a specific service or port to turn off. If a runtime has an online-access or gateway function you never use, your manufacturer's documentation is the place to find how to switch it off; do not guess.

Am I affected?

Yes, if any device or workstation runs a CODESYS product from the lists above below 3.5.22.50 (Group 1) or below 4.24.0.0 (Group 2, which today means every Group 2 install).

  • Find the runtime version. In CODESYS Development System, connect to the device and open the device's Information or Communication Settings view, which shows the runtime version the controller reports. On the controller's PLC shell (the PLC Shell tab on the device), the rtsinfo command prints the runtime version. On a Linux SL target you installed yourself, list installed packages (dpkg -l on Debian-based systems such as Raspberry Pi OS) and read the version on the CODESYS Control entry. On Windows, Control Win and the Development System show their version under Programs and Features and in the CODESYS Installer.
  • OEM controllers. The manufacturer's firmware version is what matters. Its web management page or release notes usually state which CODESYS runtime version is bundled. Compare that to 3.5.22.50 or 4.24.0.0.
  • Is it reachable from outside? The advisory does not name a port, so neither do we. Take the TCP ports your manufacturer documents for CODESYS online access and gateway traffic, then from a host outside your plant network (a cloud VM, a phone hotspot laptop) try to connect to each controller's public address on those ports. Any successful connection is a finding. Also search an internet-exposure engine such as Shodan or Censys for your own public IP ranges and look for CODESYS banners. If you find one, that device is step one.
  • Engineering laptops. Any laptop with CODESYS Development System V3 below 3.5.22.50 carries the affected simulation runtime. Update it, and keep it off guest and coffee-shop networks until you do.

How we know, and what we could not see

  • Primaries read December 3 to 4, 2026: CERT@VDE VDE-2026-169, VDE-2026-170 and VDE-2026-154; the PLC2SHELL write-up from Limes Security. The advisory credits Felix Eberstaller (f0rw4rd) of Limes Security / QuellSec and Luca Borzacchiello of Nozomi Networks, coordinated by CERT@VDE. The Hacker News article of December 3 pointed us there. Credit for the finding is theirs; we are reporting it.
  • KEV: not listed, CISA catalog version 2026.12.03.
  • Public PoC: our exploit harvester picked up the dinosn repository on December 3 at 12:02 UTC. GitHub shows it created December 1. That is a third-party clock, not a detection of ours, and we did not execute it.
  • Our edge, and why it is mostly blind here. CODESYS online services are an industrial protocol, not a web page. We scanned 696,745 edge block records, 112,024 edge canary records and 889 origin honeypot captures since November 4, 2026 for "codesys" or "plchandler" in a request path: zero matches, and no pages of our own to subtract. That zero tells you almost nothing. Our edge watches HTTP and HTTPS on our own web properties; it cannot see probes against a controller's online protocol port, and we run no industrial honeypot. "We saw nothing" here means "we could not have seen it."
  • Indicators: none published in the sources we read. No IPs, domains or hashes went into the feed.
  • Not verified: the PoC's claims, including the separate overflow in 3.5.22.50; the exact release date of 4.24.0.0; which OEMs have shipped firmware with the fix. Confidence capped at 95%.

Sources

Want controller-adjacent threat intel in your firewall without a bill? Our feed is free to register: analytics.dugganusa.com/stix/register, docs at docs.dugganusa.com.

Read next: Danfoss refrigeration controllers, six unpatched flaws, another case where the controller's network position was the only fix on offer.


Every indicator in this post is in the feed. Free.

1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.

Get your free key → analytics.dugganusa.com/stix/register