Vulnerability · Critical · Patch available

PLC2Shell: CVE-2026-127148A single crafted network packet takes over CODESYS industrial controllers – no password, no user action

On November 30, 2026, CODESYS published the critical vulnerability CVE-2026-127148 through CERT@VDE. It was found by Felix Eberstaller (f0rw4rd) of Limes Security, who named the research “PLC2Shell”. The CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime check the length of online-service packets incorrectly; a single crafted packet to the online protocol (TCP 11740) triggers a write beyond the buffer and leads to code execution on the controller – without authentication. According to the vendor, CODESYS runs in more than ten million controllers from over 500 device manufacturers. No attacks have been confirmed yet, but since December 1 the first proof-of-concept repositories have appeared on GitHub.

  • CVSS 3.1: 9.8 · CVSS 4.0: 9.3 (CERT@VDE) · rated “critical”
  • Pre-authenticated code execution over the online protocol (TCP 11740)
  • Fix: 3.5.22.50 (Windows family) · 4.24.0.0 planned for Linux runtimes (Dec 2026)
  • 26 CODESYS products affected · around 1,000 device types from 500+ vendors

At a glance

What happened and what it means for you

CODESYS Control is the runtime software that turns an industrial PC, a panel or an embedded device into a programmable logic controller (PLC). Devices from a great many vendors build it in. The online protocol is used to program and operate the runtime; until the fix, that protocol processed its packets incorrectly. Whether you are affected comes down to three questions: does CODESYS Control run on the device, is its online protocol reachable over the network, and is it running a version before the fix? [1][8][12]

  1. It hits the runtime, not your PLC program. The flaw is in the CODESYS Control runtime that executes your automation program, not in your IEC 61131 code. That is why devices from many vendors are affected at once, as soon as they embed this runtime.
  2. One packet is enough – no account. Unlike many OT flaws, this needs neither valid credentials nor a user action. Anyone who reaches the online protocol over the network can send a crafted packet; the rest happens inside the runtime.
  3. The write becomes code execution. The incorrect length makes the runtime write data beyond the intended buffer. According to the researcher, this can be turned reliably into code execution on the controller, despite address-space randomization (ASLR), with an approach specific to each operating system.
  4. Hardware PLC and soft PLC differ. If CODESYS runs as software on an IPC, a Raspberry Pi or in a VM, the update comes directly from CODESYS. If the runtime sits in the firmware of a device PLC, the manufacturer’s firmware update is what counts – and that can take time.
  5. The network is the first line of defence. The online protocol does not belong on the open internet or in flat networks. On December 3, Limes found around 1,000 directly reachable controllers; check first whether TCP 11740 and 1217 are reachable from outside.

What is established

  • CODESYS published the flaw on November 30 with Advisory 2026-17 (CERT@VDE: VDE-2026-169), rated “critical”. CVE-2026-127148 has CVSS 3.1 9.8 and CVSS 4.0 9.3; the cause is an out-of-bounds write (CWE-787) in CmpChannelMgr and CmpChannelMgrEmbedded.
  • Twenty-six products are affected in two groups: 13 in the Windows family receive the fix with 3.5.22.50 (since November 30), and 13 Linux runtimes are to follow with 4.24.0.0 in December 2026.
  • The flaw was found and reported by Felix Eberstaller (f0rw4rd) of Limes Security, for the critical flaw together with Luca Borzacchiello of Nozomi Networks. The “PLC2Shell” research bundles around 40 findings, eleven of which have been published as CVEs so far.
  • The researcher demonstrated reliable pre-auth code execution on Windows, Linux and VxWorks runtimes and on a Schneider Electric Modicon M241. On lab devices, injected persistence survived restarts until the firmware was reflashed.
  • As of December 4, the flaw is not in CISA’s KEV catalog and no attacks are confirmed. Since December 1, however, the first repositories presenting themselves as PoCs have appeared on GitHub – from a bounded detector to claims of network-based code execution. VamiSec has not verified these.
  • On December 3, using its own scanning check, Limes counted around 1,094 reachable CODESYS controllers in 43 countries; none of the 417 with a visible version was running a patched build.

What remains unclear

  • When individual device manufacturers will ship firmware with the patched runtime: on December 3, the Limes vendor tracker listed not a single manufacturer advisory.
  • When the Linux runtimes will receive the 4.24.0.0 fix: CODESYS says “December 2026” but gives no exact date.
  • How solid the circulating GitHub PoCs are and whether broadly usable exploits will emerge. VamiSec’s assessment: with public advisories and patched binaries, the barrier has dropped markedly.
  • Whether and how quickly the flaw will be added to the KEV catalog; CISA’s SSVC assessment on November 30 rated it “automatable” with “total” technical impact.
  • How many controllers are reachable inside internal, supposedly protected networks – the 1,094 from the scan only count what sits directly on the internet.
Attack chain

How a network packet becomes a shell on the PLC

The advisory confirms the core: incorrect length checking in the online protocol, a write beyond the buffer, unauthenticated code execution. The steps to a full chain and to persistence are described by the researcher; we deliberately do not reproduce exploit code or offsets. [1][2][8][12]

  1. Per the advisory and the researcher

    Reach the online protocol

    Attackers need a network connection to the runtime’s online protocol, by default TCP 11740, often via the gateway on TCP 1217. If the controller sits on the internet or in a flat network, this barrier is low.

  2. Per the advisory and the researcher

    Connect without a login

    The path that processes the vulnerable packets is reachable before any login is required. That is why the attack is pre-authenticated: it needs no valid account and no user action.

  3. Per the advisory and the researcher

    A packet with the wrong length

    A crafted online-service packet makes CmpChannelMgr or CmpChannelMgrEmbedded miscalculate the length. The runtime copies data beyond the intended buffer.

  4. Per the advisory and the researcher

    Write beyond the buffer

    Writing in the wrong place lets attackers alter adjacent memory structures of the runtime in a targeted way (CWE-787). That is the basis for hijacking the program’s flow.

  5. Per the researcher

    Code execution on the controller

    According to the researcher, this can be turned reliably into code execution – despite ASLR, with an approach specific to each operating system. It was demonstrated on Windows, Linux and VxWorks runtimes and a Modicon M241.

  6. Per the researcher

    Persistence across the restart

    On lab devices, injected code survived restarts until the firmware was reflashed. VamiSec’s assessment: a compromised controller cannot be reliably “restarted away”; after a confirmed incident, the firmware should be renewed and integrity checked.

What PLC2Shell is not

  • Not a flaw in your PLC program: it is the CODESYS Control runtime that is affected, not the IEC 61131 code you wrote. Updating the program alone does not close it.
  • Not an attack without network access to the online protocol: if TCP 11740 (and the gateway on 1217) is cleanly segmented and reachable only from the engineering network, the external path is gone.
  • Not a pure visualization or engineering problem: the four Visualization flaws (VDE-2026-154) hit the engineering workstation and need a spoofed or tampered connection. The critical CVE-2026-127148 hits the controller itself and needs only a packet.

Why the flaw is pressing

  • Pre-authenticated and without user action: the CVSS vector requires neither privileges nor interaction. Anyone who reaches the protocol can attack.
  • Enormous footprint: CODESYS cites more than ten million controllers and over 500 device manufacturers. A flaw in the runtime cuts across the whole industry.
  • Patching takes time in OT: the CODESYS fix is followed by the device manufacturer’s firmware update, then a maintenance window, often with a retest or recertification. Until then, network isolation is what counts.
  • The advisories and patched binaries are public and first PoCs are circulating. VamiSec’s assessment: the time to usable exploits is likely short; act at the network level now, even while the firmware is still missing.
The advisory family

Eleven CVEs across three advisories

PLC2Shell sits behind three CERT@VDE advisories of November 24 and 30, 2026. Only CVE-2026-127148 is pre-authenticated and critical; the others need an account on the controller or a spoofed engineering connection. The same update closes all eleven. [1][4][6]

CVEComponent (CWE)AccessImpactCVSS 3.1
CVE-2026-127148VDE-2026-169CmpChannelMgr / CmpChannelMgrEmbeddedCWE-787No loginPre-auth code execution on the controller [1][2][8]9,8 · Critical
CVE-2026-127149VDE-2026-169CmpRedundancyCWE-863Account, low priv.Alter redundancy config or stop process control [1][2]7,1 · High
CVE-2026-127167VDE-2026-170CmpLinuxRTDiag (Linux)CWE-787Account, high priv.Code execution on Linux devices [4][5]7,2 · High
CVE-2026-121016VDE-2026-154CODESYS VisualizationCWE-669User action neededCode execution on the engineering workstation [6][7]8,8 · High
CVE-2026-121017VDE-2026-154CODESYS VisualizationCWE-669User action neededInvoke COM/ActiveX on the workstation [6][7]8,8 · High
CVE-2026-121018VDE-2026-154CODESYS VisualizationCWE-669User action neededInvoke local functions on the workstation [6][7]8,8 · High
CVE-2026-127146VDE-2026-169CmpAppBPCWE-863Account, low priv.Alter persistence of debug breakpoints [1][2]4,3 · Medium
CVE-2026-127147VDE-2026-169CmpSettingsCWE-191Account, low priv.Denial of service (integer underflow) [1][2]6,5 · Medium
CVE-2026-127150VDE-2026-169CmpOpenSSLCWE-22Account, high priv.Disclose whether files exist, DoS [1][2]5,5 · Medium
CVE-2026-127168VDE-2026-170SysModule (Linux)CWE-532Account, low priv.Read internal system info from a log [4][5]4,3 · Medium
CVE-2026-121019VDE-2026-154CODESYS VisualizationCWE-22User action neededCreate a file in an arbitrary directory [6][7]3,3 · Low

Advisory mapping: VDE-2026-169 (five CVEs in CODESYS Control), VDE-2026-170 (two in the Linux/QNX part), VDE-2026-154 (four in CODESYS Visualization). CVSS per CVSS 3.1 (CERT@VDE); “Account, high priv.” means logged in with elevated privileges on the controller.

Assessment

Critical and hard to patch in OT

The technical severity is maximal, exploitation is not yet confirmed. The OT problem is less the single patch than the chain down to the device. VamiSec’s assessment: treat network isolation as the immediate measure and the firmware update as the delayed but indispensable second stage.

9.8CVSS 3.1 (CERT@VDE)

“Critical”: attack over the network, no privileges, no user action, full impact on confidentiality, integrity and availability. CVSS 4.0: 9.3. [8][2]

0 / 417Patched on the network

On December 3, Limes found 1,094 reachable CODESYS controllers in 43 countries. Of the 417 with a visible version, none was on a patched build; the oldest runtimes date from 2013. [14]

~2%EPSS, no KEV

FIRST estimates exploitation within 30 days at around 2 percent (around the 81st percentile). No KEV entry yet, but first PoCs on GitHub since December 1. [10][11][23]

10M+Controllers with CODESYS

CODESYS cites more than ten million controllers, around 1,000 device types from over 500 manufacturers. Affected is wherever a runtime before the fix is reachable on the network. [18]

One flaw, three advisories

VDE-2026-169, -170 and -154 belong together but hit different targets. Priority goes to the pre-authenticated CVE-2026-127148 on the controller. The Visualization flaws need a spoofed or tampered engineering connection, and the Linux flaw in VDE-2026-170 needs a high-privileged account. VamiSec’s assessment: defuse the critical flaw at the network first, then take the others along with the update. [12][13]

Patching takes time in OT

In IT a patch is often a matter of hours. In OT the CODESYS fix is followed by the device manufacturer’s firmware update, then a maintenance window, often with a retest or recertification of safety-related functions. Soft PLCs on IPCs, Raspberry Pis or in VMs can be updated faster, because the update comes directly from CODESYS. [12][17]

The network is the first line of defence

The online protocol never belongs on the open internet or in flat networks. CODESYS and CERT@VDE recommend firewalls, segmentation, access only from trusted networks and VPN with strong authentication. Check first whether TCP 11740 and the gateway on 1217 are reachable from outside. [1][22]

Timeline

From report to disclosure

Around five months of coordinated disclosure lay between report and publication. With the advisories and patched binaries, the flaw has been publicly traceable since late November.

  1. Research

    Reported to CERT@VDE

    Felix Eberstaller of Limes Security reports around 40 findings in CODESYS Control, with proof-of-concepts, to the vendor via CERT@VDE. [12]

  2. Vendor

    First fixes behind the scenes

    CODESYS resolves the first reported issues. Coordination on the schedule and publication continues. [12]

  3. Authority and CVE

    CVE IDs assigned

    CVE identifiers are assigned for the confirmed findings; vendor and researcher agree not to publish exploit code. [8][12]

  4. Vendor

    Visualization 4.11.0.0 (VDE-2026-154)

    CODESYS publishes the first advisory, with four flaws in CODESYS Visualization and the fix 4.11.0.0. [6][7][12]

  5. Vendor

    3.5.22.50 and two advisories

    CODESYS publishes VDE-2026-169 (five CVEs, including the critical CVE-2026-127148) and VDE-2026-170 (two CVEs) with the patched Windows family 3.5.22.50. The CVE record appears with CVSS 9.8. [1][2][4][5]

  6. Research

    Limes publishes PLC2Shell

    The researcher describes the research publicly, with a vendor tracker and an analysis of devices reachable on the internet. Exploit code is withheld; further publications and a talk are announced for 2027. [12][13][14]

  7. Media

    Media and exposure scan

    The Hacker News and other trade media report. Limes counts around 1,094 directly reachable controllers in 43 countries, none with a visible version on a patched build. [19][20][14]

  8. Threat

    First PoCs on GitHub

    Several public repositories present themselves as proof-of-concept for CVE-2026-127148, from a bounded detector to claims of network-based code execution. They are not independently verified. [23]

  9. Looking ahead

    Fix for Linux runtimes planned

    CODESYS announces 4.24.0.0 for the 13 Linux runtimes. The vendor gives no exact date; until then, only network isolation helps there. [1][13][17]

  10. Looking ahead

    Further publications, new deadlines

    Limes announces further posts and a conference talk. At the same time, from January 20, 2027, the EU Machinery Regulation applies, requiring cybersecurity for new machinery. [12][26]

Affected systems

Where CODESYS Control is reachable on the network

A device is exploitable when three conditions come together. You can check the version here; reachability with the commands below.

  • CODESYS Control is running

    The device runs the CODESYS Control runtime, as the firmware of a device PLC or as a soft PLC on an IPC, Raspberry Pi or in a VM. Pure engineering machines without a runtime are not affected by the critical flaw.

  • Version before the fix

    Windows family before 3.5.22.50 or a Linux runtime before 4.24.0.0. For a device PLC, the manufacturer’s firmware version counts, not the CODESYS version alone.

  • Online protocol reachable

    The online protocol (TCP 11740) or the gateway (TCP 1217) is reachable from a network an attacker can enter – the internet, the office network or a flat OT network without segmentation.

CODESYS check

Choose the product family and enter the version number (e.g. 3.5.22.40 or 4.23.0.0). The check shows whether the build contains the fix for PLC2Shell. For a device PLC, check the firmware with the manufacturer.

Product family
Examples:

The check runs only in your browser; nothing is transmitted.

Nothing entered yet

Choose a product family and enter the version number. The result appears immediately and stays in your browser.

Fixed as of version
Windows family (3.5.x)3.5.22.50
Linux runtime (4.x)4.24.0.0
CODESYS Visualization4.11.0.0

What matters is the version the device actually loads. For a device PLC, read the firmware version in the web interface or the manufacturer’s tool.

Status of the fixes as of December 4, 2026 [1][2][13]
Product familyAffected buildsFixed versionStatus
Windows family (3.5.x)3.0.0.0 – 3.5.22.403.5.22.50Fix availableControl RTE/Win (SL), Gateway, HMI, OPC DA Server, PLCHandler, Embedded/Remote Target Visu, Safety SIL2, Edge Gateway (Windows) and the Development System’s simulation runtime. Fix 3.5.22.50 since November 30. [1][2][13]
Linux runtimes (SL, 4.x)3.5.0.0 – 4.23.x4.24.0.0Fix plannedControl for Linux, Linux ARM, Raspberry Pi, PFC100/PFC200, PLCnext, IOT2000, BeagleBone, emPC-A/iMX6, WAGO Touch Panels 600, Virtual Control, Edge Gateway (Linux), TargetVisu. Fix 4.24.0.0 planned for December 2026. [1][2][13]
CODESYS Visualization3.0.0.0 – 4.10.x4.11.0.0Fix availableFour flaws (VDE-2026-154) affect the engineering workstation during online visualization. Fix 4.11.0.0 since November 24. Mitigation until then: encrypted online communication. [6][7][13]
Runtime Toolkit · Linux/QNX layerRuntime ToolkitLinux/QNX-Layer3.5.22.504.24.0.0PartialVDE-2026-170: two further flaws in the Linux/QNX adaptation layer. Runtime Toolkit fixed with 3.5.22.50, the derived Linux runtimes with 4.24.0.0 (planned). Other platforms are not affected by this. [4][5][13]
Device PLCs from manufacturersSchneider · WAGO · ABBBeckhoff · Festo · Turck …–Check vendorSchneider Electric, WAGO, ABB, Beckhoff, Festo, Turck and more than 500 others embed CODESYS. Here the manufacturer’s firmware update counts. On December 3, the vendor tracker listed no manufacturer advisory yet. [13][14]
Soft PLCs on IPC, Pi, VMIPC · Raspberry Pi · VM3.5.22.504.24.0.0Check vendorIf the runtime runs as software, the update comes directly from CODESYS (3.5.22.50 or 4.24.0.0), without waiting for a device manufacturer. Update via CODESYS Installer, Store or the download area. [13][17]

What matters is the runtime version the device actually runs. For a device PLC that is the manufacturer’s firmware; a CODESYS version “3.5.22.50” is often not visible there directly.

Not affected (by the critical flaw)

  • Windows family from 3.5.22.50 or a Linux runtime from 4.24.0.0, after the device’s firmware update
  • Devices whose online protocol (TCP 11740) and gateway (1217) are reachable only from the engineering network
  • Pure engineering machines without a CODESYS Control runtime – but these are affected by VDE-2026-154 (Visualization)

Not affected does not mean safe forever: the four Visualization flaws hit the engineering workstation, and the authenticated flaws in VDE-2026-169/170 remain relevant for users with an account on the controller. The update covers all eleven.

Check reachability on the network

Scans a network for the CODESYS online protocol (TCP 11740), the block-driver ports and the gateway (1217), plus the UDP discovery service. Run only within an authorised scope and after agreeing with plant operations.

Bash · nmap
# Which hosts expose the CODESYS online protocol? Run from an authorised scanning host.
# TCP 11740 (online protocol) and TCP 1217 (gateway) should never be reachable from the internet.
nmap -Pn -p 1217,11740,11741,11742,11743 -oG codesys-tcp.txt 10.0.0.0/24

# UDP discovery service (1740-1743). UDP scans are slow and need root.
sudo nmap -Pn -sU -p 1740-1743 --open 10.0.0.0/24

# Confirm it is really CODESYS, not just an open port: a short service probe
nmap -Pn -p 11740 -sV --version-intensity 2 10.0.0.0/24

Check reachability from Windows

Checks from a Windows host whether a target’s gateway and online protocol are open, and lists locally installed CODESYS services.

PowerShell · Windows
# Is the online protocol reachable from this host? Replace the target with your PLC or runtime IP.
'1217','11740' | ForEach-Object {
  $r = Test-NetConnection -ComputerName 192.0.2.10 -Port $_ -WarningAction SilentlyContinue
  '{0,-6} {1}' -f $_, $(if ($r.TcpTestSucceeded) { 'OPEN' } else { 'closed' })
}

# Windows-based runtime present locally? (Control Win / RTE install as a service)
Get-Service | Where-Object { $_.DisplayName -match 'CODESYS' } |
  Select-Object Name, DisplayName, Status

Find a running runtime and its version

Shows on a Linux host whether a CODESYS runtime is running and tries to determine the version. For a device PLC, read the firmware version in the web interface.

Bash · Linux-Laufzeit
# Is a CODESYS runtime running on this host, and which version?
pgrep -a -f 'codesyscontrol' || systemctl list-units --type=service 2>/dev/null | grep -i codesys

# Version of a locally installed runtime (soft PLC / SL packages). Paths vary by product.
for f in /opt/codesys*/*/codesyscontrol* /usr/bin/codesyscontrol*; do
  [ -x "$f" ] && { echo "== $f"; "$f" --version 2>/dev/null || strings "$f" | grep -Eo '3\.5\.[0-9]+\.[0-9]+|4\.[0-9]+\.[0-9]+\.[0-9]+' | sort -u | tail -5; }
done

# On a vendor PLC the firmware version is what counts - read it in the device web UI or vendor tool.

Lock the online protocol down on the network

An example firewall rule that allows the gateway and online protocol to the controller only from the engineering network and drops everything else. Adjust names, interfaces and networks, and test before deploying.

nftables · Beispielregel
# Allow the CODESYS online protocol only from the engineering VLAN, drop everything else.
# Adjust table/chain names and interfaces to your firewall. Test before deploying.
table inet codesys {
  set engineering {
    type ipv4_addr
    elements = { 10.10.20.0/24 }          # engineering workstations only
  }
  chain forward {
    type filter hook forward priority 0;
    # gateway (1217) and online protocol (11740-11743) to the PLC network
    ip daddr 10.0.0.0/24 tcp dport { 1217, 11740-11743 } ip saddr @engineering accept
    ip daddr 10.0.0.0/24 tcp dport { 1217, 11740-11743 } drop
    ip daddr 10.0.0.0/24 udp dport 1740-1743 ip saddr @engineering accept
    ip daddr 10.0.0.0/24 udp dport 1740-1743 drop
  }
}
Self-check

How well prepared are you for PLC2Shell?

Eight questions, answered honestly. “Yes” is the safe answer each time. The evaluation stays in your browser.

  1. Do you know which of your controllers and soft PLCs are based on CODESYS Control, including in plants from integrators and service providers?
  2. Are the online protocol (TCP 11740) and the gateway (TCP 1217) reachable from neither the internet nor the office network anywhere?
  3. Are the soft PLCs you can update yourself running on 3.5.22.50 or 4.24.0.0?
  4. For your device PLCs, are you tracking the manufacturers’ firmware advisories for PLC2Shell?
  5. Is the engineering network separated from office IT and access to the controllers limited to a few named people?
  6. Does your monitoring detect when the CODESYS online protocol is reached from an unexpected network or a runtime restarts unexpectedly?
  7. Do you have a plan for handling a compromised controller – including reflashing firmware and checking integrity?
  8. Are CODESYS devices captured in your vulnerability and risk management, with deadlines and evidence for NIS2?
Your result

0 of 8 questions answered

The self-check is no substitute for an assessment of your environment.

Action plan

What to do now

Three stages: today, restrict reachability and update soft PLCs; this week, segment and monitor; then anchor firmware updates and OT security for good. The order matters: the network first, because the firmware update will come later for many devices. [1][12][16]

Today

Restrict reachability

  • List CODESYS devices and soft PLCs, starting with any whose online protocol is reachable from the internet or the office network.
  • Use the commands below to check whether TCP 11740 and 1217 are reachable from outside, and close those paths immediately.
  • Raise soft PLCs you can update yourself to 3.5.22.50 or 4.24.0.0 (the update comes directly from CODESYS).
  • Update CODESYS Visualization to 4.11.0.0 and enable encrypted online communication (VDE-2026-154).
  • For device PLCs, track the manufacturers’ firmware advisories and plan the updates.
This week

Segment and monitor

  • Place controllers in segmented OT networks; make the online protocol reachable only from the engineering network.
  • Allow remote access only via VPN with strong authentication; dissolve flat networks.
  • Monitor the network boundaries to the controllers for access to 11740/1217; examples in the detection section.
  • Evaluate runtime restarts and connection drops as a possible crash signal.
  • Harden engineering workstations and connect to the runtimes only over encryption.
30 days

Secure for the long term

  • Track CODESYS devices in the asset inventory and SBOM, with runtime or firmware version, including in plants run by service providers.
  • Implement or sharpen a zone-and-conduit structure per IEC 62443.
  • Add manufacturers’ firmware updates to maintenance planning, with a retest of safety-related functions.
  • Define a patch and exception process for OT and schedule the monthly CODESYS advisories firmly.
  • Exercise an OT incident process, including reflashing firmware and checking the integrity of a compromised controller.

For OT operations and the SOC

  • Report the state of reachability and updates daily, exposed controllers first.
  • Monitor and alert centrally on access to 11740/1217 at the network boundaries.
  • Correlate unexpected runtime restarts and connection drops with firewall logs.

For leadership, the ISO and manufacturers

  • Set CODESYS devices as a priority in vulnerability management and demand progress.
  • Document residual risks where firmware updates are still missing, and record network isolation as a compensating measure.
  • As a machine or device manufacturer, review the obligations under the CRA, the Machinery Regulation and IEC 62443-4-1 and prepare your own advisories.
Suspect exploitation?

Isolate the controller on the network and, as far as process safety allows, do not simply restart it – injected code can survive the restart. Preserve evidence (firewall and runtime logs, a network capture), then reflash the firmware and check integrity before the plant restarts. Retest safety-related functions before release. Our CSIRT supports you around the clock.

Report an incident csirt@vamisec.com
Detection

Keep an eye on access and crashes

No attacks are confirmed, but the advisories and first PoCs are public. The strongest signal in OT is simple: someone reaches the CODESYS online protocol from a network where that should never happen. In addition, watch for unexpected runtime restarts, because a failed memory corruption can crash the runtime. The queries are examples; test them before use in your environment. [1][12][22]

IDS: online protocol from the wrong network

The Suricata rules fire as soon as TCP 11740 or the gateway 1217 is reached from a source outside the engineering network. Set the variables for the engineering and PLC networks and test in alert-only mode first.

Suricata · IDS
# Alert when the CODESYS online protocol is reached from outside the engineering network.
# Define $ENGINEERING and $PLC_NET in your Suricata variables. Test in alert mode first.
alert tcp !$ENGINEERING any -> $PLC_NET 11740 (
  msg:"CODESYS online protocol from non-engineering source (CVE-2026-127148 exposure)";
  flow:to_server; flags:S;
  threshold:type limit, track by_src, count 1, seconds 60;
  classtype:attempted-admin; sid:2026127148; rev:1;
)

# Gateway port 1217 reached across a zone boundary
alert tcp !$ENGINEERING any -> $PLC_NET 1217 (
  msg:"CODESYS gateway 1217 from non-engineering source";
  flow:to_server; flags:S; classtype:attempted-recon; sid:2026127149; rev:1;
)

Firewall logs across zone boundaries

The KQL query finds connections to 11740/1217 that cross a zone boundary, for example from the office into the OT network. Adjust the table and subnets to your environment.

KQL · Firewall / Sentinel
// Connections to the CODESYS online protocol and gateway that cross a zone boundary.
// Replace the table with your firewall's log table and the subnets with your zones.
let engineering = dynamic(["10.10.20.0/24"]);
let plc_net     = dynamic(["10.0.0.0/24"]);
CommonSecurityLog
| where TimeGenerated > ago(30d)
| where DestinationPort in (1217, 11740, 11741, 11742, 11743)
| where ipv4_is_in_any_range(DestinationIP, plc_net)
| where not(ipv4_is_in_any_range(SourceIP, engineering))
| summarize hits=count(), ports=make_set(DestinationPort) by SourceIP, DestinationIP, bin(TimeGenerated, 1h)
| order by hits desc

Availability and restarts

For soft PLCs, checks the number of restarts and the crash-related log lines of the runtime. For hardware PLCs, alert in OT monitoring on sudden connection losses and repeated reconnects and correlate them with firewall logs.

Bash · Verfügbarkeit
# A pre-auth memory-corruption bug can crash the runtime: watch for unexpected restarts.
# On a soft PLC with systemd, list restarts and recent crash logs of the runtime service.
systemctl show codesyscontrol -p NRestarts -p ActiveEnterTimestamp 2>/dev/null
journalctl -u 'codesyscontrol*' --since '2026-11-30' -p warning 2>/dev/null |
  grep -Ei 'segfault|signal|core|restart|watchdog|out of|channel'

# On hardware PLCs, alert on sudden loss of the online protocol or repeated reconnects
# in your OT monitoring (SNMP, ping, protocol heartbeat) - correlate with firewall logs.

Hits are indicators, not proof, and their absence does not prove that nothing happened. Where there is reasonable suspicion, treat a controller as compromised until proven otherwise.

NIS2, CRA and the Machinery Regulation

What the regulation says

The flaw itself is not a reportable event. What attackers do with it can be, and operators and manufacturers have their own obligations.

  • Handling vulnerabilities is mandatory

    NIS2 requires important and essential entities to run risk management that includes handling vulnerabilities and supply-chain security. Anyone who knows that a reachable CODESYS controller runs a vulnerable build and does not act must justify that if challenged; network isolation is a documentable compensating measure.

  • Reporting deadlines in an emergency

    If an attack leads to a significant security incident, the following applies in Germany: early warning to the BSI within 24 hours, notification within 72 hours, final report no later than one month after the notification. In critical-infrastructure plants, the failure of a controller can quickly reach this threshold.

  • Manufacturers: Cyber Resilience Act

    Since September 11, 2026, manufacturers have had to submit an early warning within 24 hours if a vulnerability in one of their own products with digital elements is actively exploited, even if it lies in an embedded component such as CODESYS. The obligations to handle vulnerabilities and provide updates apply from December 11, 2027; secure development aligns with standards such as IEC 62443-4-1.

  • New machinery: the Machinery Regulation

    From January 20, 2027, the EU Machinery Regulation (EU) 2023/1230 requires cybersecurity as part of the conformity of new machinery. Controllers with an embedded runtime and their protection against tampering therefore belong in the risk assessment and the technical documentation.

How VamiSec helps

Find, separate, secure, prove

From a short-notice reachability and exposure check through network segmentation and monitoring to evidence for NIS2 and the CRA.

Acute

CSIRT and compromise assessment

On suspicion, we determine whether a controller was tampered with: network boundaries, runtime and firewall logs, firmware integrity and reachable services.

Compromise assessment
OT

OT security and segmentation

We review your zones and conduits per IEC 62443, design the segmentation and lock the online protocol cleanly down to the engineering network.

OT and industrial security
Attack surface

OT and device pentests

Within an authorised scope, we check which controllers and protocols are reachable and how far an attacker gets in the network.

IoT and OT pentests
Operators

Critical infrastructure and NIS2

We help operators assess OT risks, prioritize measures and meet NIS2 obligations in a traceable way.

KRITIS and NIS2
Detect

Managed Detection & Response

We monitor network boundaries and runtimes for suspicious access and crashes and respond around the clock.

MDR at VamiSec
Prevent

Zero-day monitoring

We match newly disclosed flaws such as PLC2Shell against your attack surface promptly, so you can act before regular maintenance cycles.

Zero-day monitoring
VamiGRCAgentic GRC platform

VamiGRC: match vulnerabilities against assets, manage deadlines, maintain evidence

VamiGRC matches CISA KEV, NVD and EPSS against your assets, products and SBOMs. When a flaw such as CVE-2026-127148 appears, you see which of your recorded assets are affected and manage actions and deadlines through to evidence.

  • CISA KEV, NVD and EPSS are matched against your assets, products and SBOMs.
  • Evidence from connected systems is updated along with its source rather than at audit time.
  • When an incident is recorded, a deadline timer starts for NIS2; VamiAI drafts notifications, and your team reviews and submits them.
  • One control, multiple frameworks: implemented once, mapped to NIS2, ISO 27001 and other standards.
  • AI agents handle the routine work according to your approval rules; your team decides.
Valeri Milke, founder and managing director of VamiSec GmbH
Schedule a call

Let’s talk about your controllers

Whether it is a reachability and exposure check, network segmentation or evidence for NIS2 and the CRA, Valeri Milke and the VamiSec team help you derive concrete next steps from this briefing.

“IT security and compliance without AI is a vulnerability.”

Valeri MilkeFounder & Managing Director · VamiSec GmbHISO/IEC 27001 & ISO/IEC 42001 Lead Auditor
20Years of GRC experience of the founder
ISO 27001VamiSec is itself certified
T Cloud PublicOperation in German data centers
24/7CSIRT for security incidents
FAQ

Common questions about PLC2Shell

What is PLC2Shell?

PLC2Shell is the name of the research by Felix Eberstaller (f0rw4rd) at Limes Security into a set of flaws in CODESYS Control, the runtime software of many industrial controllers. The critical flaw CVE-2026-127148 lets an attacker run code on the controller without a password, via a crafted network packet. It is fixed in the Windows family with 3.5.22.50; for the Linux runtimes, 4.24.0.0 is announced for December 2026.

Am I affected?

Affected are devices running a CODESYS Control runtime before the fix whose online protocol (TCP 11740) is reachable over the network. That ranges from soft PLCs on IPCs, Raspberry Pis and VMs to device PLCs from many manufacturers. Check the version with the CODESYS check on this page and reachability with the commands in the “Affected systems” section.

Which versions contain the fix?

The Windows family (Control RTE/Win, Gateway, HMI, Safety SIL2, Dev System and others) is fixed with 3.5.22.50 since November 30. The 13 Linux runtimes (Control for Linux, Raspberry Pi, PFC100/200, PLCnext and others) are to receive the fix with 4.24.0.0 in December 2026. CODESYS Visualization has been fixed with 4.11.0.0 since November 24.

Do attackers need a password?

No. The critical flaw CVE-2026-127148 is pre-authenticated: anyone who reaches the online protocol over the network can attack without a valid account and without any user action. That is why network isolation is the most effective immediate measure.

Is PLC2Shell already being exploited?

As of December 4, no attacks are confirmed and the flaw is not in CISA’s KEV catalog. Since December 1, however, the first public repositories presenting themselves as proof-of-concept for CVE-2026-127148 have appeared on GitHub, from a bounded detector to claims of network-based code execution. VamiSec has not verified these. VamiSec’s assessment: with public advisories and patched binaries, the barrier has dropped markedly; act at the network level now.

What is the CODESYS online protocol and which ports does it use?

The engineering tool uses the online protocol to program and operate the runtime. It uses TCP 11740 by default (block drivers 11740–11743), the gateway runs on TCP 1217 and the discovery service on UDP 1740–1743. These ports do not belong on the open internet. Check above all whether 11740 and 1217 are reachable from outside.

My device is a PLC from Schneider, WAGO, ABB or another vendor. What applies?

If CODESYS sits in the firmware of a device PLC, the manufacturer’s firmware update counts, not the CODESYS version alone. On December 3, the Limes vendor tracker listed no manufacturer advisory yet. Follow your manufacturer’s security notices and isolate the device cleanly on the network until the update.

Is updating the CODESYS runtime enough?

For soft PLCs, yes: the update comes directly from CODESYS (3.5.22.50 or 4.24.0.0). For a device PLC you have to wait for the manufacturer’s firmware that contains the patched runtime. Until then, and in general, cleanly segmenting the online protocol is the decisive measure.

Is the safety function affected?

CODESYS Safety SIL2 is among the affected products and receives the fix with 3.5.22.50. According to the researcher, the safety-related function is not necessarily compromised, but the controller as a whole is exploitable. After a confirmed incident, safety-related functions should be retested before release.

Does an attack survive a restart of the controller?

On lab devices, injected code survived restarts until the firmware was reflashed. So after reasonable suspicion, do not rely on a restart: isolate the controller, preserve evidence, reflash the firmware and check integrity before the plant restarts.

What about the eleven CVEs?

PLC2Shell sits behind three advisories: VDE-2026-169 (five CVEs in CODESYS Control, including the critical CVE-2026-127148), VDE-2026-170 (two CVEs in the Linux/QNX part) and VDE-2026-154 (four CVEs in CODESYS Visualization). Only the one is pre-authenticated and critical; the others need an account on the controller or a spoofed engineering connection. The update covers them all.

What applies in regulatory terms under NIS2, the CRA and the Machinery Regulation?

Under NIS2, operators must handle vulnerabilities and report significant incidents on time (24 h, 72 h, one month). Under the Cyber Resilience Act, since September 11, 2026 manufacturers must report an actively exploited vulnerability within 24 hours as an early warning; further obligations apply from December 11, 2027. From January 20, 2027, the EU Machinery Regulation requires cybersecurity as part of the conformity of new machinery.

How does VamiSec help?

At short notice, we check which controllers use CODESYS and how reachable they are, design the segmentation, monitor the network boundaries and investigate suspected cases with a compromise assessment and our CSIRT. With VamiGRC, you manage affected assets, deadlines and evidence for NIS2 and the CRA.

Sources

Sources and further information

The information is based on the CERT@VDE advisories and their CSAF files, the CVE record, the PLC2Shell publication by Limes Security, the CODESYS security pages, CISA, FIRST, as well as port documentation, public repositories and trade media up to December 4, 2026. Assessments by VamiSec are identified as such.

  1. [1]CERT@VDE / CODESYS GmbH: VDE-2026-169: CODESYS Control – multiple vulnerabilities,
  2. [2]CERT@VDE: VDE-2026-169 – CSAF 2.0 (advisory2026-17),
  3. [3]CODESYS GmbH: Security Advisory 2026-17 (RTS-300), PDF,
  4. [4]CERT@VDE / CODESYS GmbH: VDE-2026-170: CODESYS Control – vulnerabilities in the Linux/QNX platform adaptation layer,
  5. [5]CERT@VDE: VDE-2026-170 – CSAF 2.0 (advisory2026-18),
  6. [6]CERT@VDE / CODESYS GmbH: VDE-2026-154: CODESYS Visualization – multiple vulnerabilities,
  7. [7]CERT@VDE: VDE-2026-154 – CSAF 2.0 (advisory2026-15),
  8. [8]CVE Program: CVE Record CVE-2026-127148: Out-of-bounds Write in CODESYS Control,
  9. [9]NIST National Vulnerability Database: CVE-2026-127148 Detail,
  10. [10]CISA: Known Exploited Vulnerabilities Catalog,
  11. [11]FIRST: Exploit Prediction Scoring System (EPSS),
  12. [12]Limes Security (Felix Eberstaller): PLC2Shell – Pre-Auth RCE in CODESYS Control Runtime,
  13. [13]Limes Security: PLC2Shell – Vendor tracker,
  14. [14]Limes Security: PLC2Shell – Internet exposure,
  15. [15]CODESYS GmbH: CODESYS Security Advisories,
  16. [16]CODESYS GmbH: CODESYS Security Whitepaper
  17. [17]CODESYS GmbH: Download area: software updates,
  18. [18]CODESYS GmbH: Discover CODESYS: ecosystem figures,
  19. [19]The Hacker News (Swati Khandelwal): Critical CODESYS Flaw Lets Hackers Take Over Industrial Controllers Without a Password,
  20. [20]SecurityOnline (Daily CyberSecurity): CODESYS Fixes 9 Flaws, CVSS 9.8 RCE CVE-2026-127148,
  21. [21]Limes Security GmbH: Limes Security – OT security research, Hagenberg (Austria),
  22. [22]SEW-EURODRIVE: Port overview: CODESYS engineering (TCP 11740-11743, UDP 1740-1743)
  23. [23]GitHub: Repository search: CVE-2026-127148 (as of 4 Dec 2026),
  24. [24]EUR-Lex: Directive (EU) 2022/2555 (NIS2),
  25. [25]EUR-Lex: Regulation (EU) 2024/2847 (Cyber Resilience Act),
  26. [26]EUR-Lex: Regulation (EU) 2023/1230 (Machinery Regulation),

This briefing is no substitute for legal advice or an assessment of your environment.

Act now

The network first, then the firmware.
Knowing where CODESYS runs and how reachable it is wins the most important hour.

Arrange a no-obligation initial consultation: together, we will clarify reachability, exposure and the next steps for your plants.