Skip to content
Plc2shell Vulnerability

Plc2shell Vulnerability

plc2shell.com • December 3, 2026

As part of our vulnerability research on CODESYS, we have identified approximately 40 vulnerabilities in the CODESYS Control Runtime, CODESYS Visualization, and the engineering components. The research project is called PLC2Shell.

The first eleven vulnerabilities were published by CERT@VDE on November 24 and 30, 2026. The most severe of these, CVE-2026-127148 (CVSS 9.8), allows an unauthenticated attacker to execute arbitrary code on an affected CODESYS Control Runtime and thereby take control of vulnerable systems, e.g. PLCs.

During our research, we demonstrated code execution on Windows, Linux and VxWorks runtimes, as well as on a Schneider Electric Modicon M241.

This post gives an overview of the first published vulnerabilities. Fixed versions are available for the Windows-based products and CODESYS Visualization; the update for the Linux-based runtimes is planned for December 2026. We are intentionally withholding exploitation details while affected products are being updated.

What's actually at stake?

A PLC executes the control logic of a physical process. It reads sensors, evaluates the program cycle by cycle and drives actuators such as motors, valves, pumps and heaters, usually with hard real-time constraints and little to no host-based security monitoring.

CODESYS runs in two very different worlds. On a hardware PLC , the runtime is part of the manufacturer's firmware on a dedicated controller, often a real-time OS like VxWorks or an embedded Linux. Operators can't patch it themselves and have to wait for the device manufacturer's update. A soft PLC is the same runtime installed as software on a standard industrial PC, a Windows or Linux box, a Raspberry Pi or a virtual machine. There, the update comes directly from CODESYS, but a compromise reaches further. The attacker controls not only the process but also a general-purpose operating system with network access, credentials and often a path into the engineering or office network.

Code execution in the CODESYS runtime therefore means control over the process itself. An attacker could manipulate setpoints and outputs, operate equipment outside its design limits, halt production or alter a process subtly enough that it goes unnoticed. The HMI is fed by the same compromised controller, so operators may keep seeing plausible values while the process does something else.

Persistence makes this worse. On the devices in our lab, we were able to establish persistence that survives a restart and remains on the controller until the firmware is reflashed. Other devices may be affected in the same way. Most plants have no way to verify what a controller is actually executing, so a compromise can stay undetected for a long time. Patching alone does not answer that question. Integrity checks of the controller and its application belong in the response. Because it persists on the device, a compromised controller can also travel along the supply chain, for example through integrators, maintenance providers, spare parts or machines that are shipped with the controller already built in.

Physical safeguards and independent safety systems can limit the damage. Still, a pre-auth RCE in a widely deployed PLC runtime is a different class of risk than a typical IT vulnerability.

New to OT/ICS security? Start with the OWASP Background on OT , which covers PLCs, control loops, the Purdue model and how IT and OT differ.

One runtime, hundreds of providers, thousands of products, millions of devices

CODESYS is frequently embedded in products sold under the device manufacturer’s own brand, so operators may have CODESYS-based devices in their networks without identifying them as such. Affected platforms range from Windows-based soft PLCs and Linux-based controllers to single-board computers such as Raspberry Pi and BeagleBone, and virtual PLCs.

Discovered Vulnerabilities

Attack vector Network

User interaction None

CVE-2026-127148 is a vulnerability that leads to a pre-authentication memory corruption and does not require any credentials to be exploited. We have developed a reliable exploit that works even when modern protections, including ASLR, are enabled. Converting the original vulnerability into a stable code execution was not trivial. The exploit depends heavily on the heap layout of the target system, and a different approach was required for Windows, Linux, and VxWorks, respectively. We are deliberately withholding the details of the exploit.

The affected products include CODESYS Safety SIL2, the SIL2 runtime for functional safety, which may be used in safety-related environments. Exploiting a cybersecurity vulnerability does not necessarily compromise the safety function itself. Operators of safety-related systems should nevertheless include these vulnerabilities in their risk assessment.

HMI: CODESYS Visualization

The vulnerabilities in CODESYS Visualization affect the development environment. A tampered runtime or an attacker in a man-in-the-middle position could execute code on the workstation running the CODESYS development system.

The rollout of the patches will take some time. Most CODESYS runtimes are shipped as part of the manufacturer’s firmware, so each device manufacturer must first integrate and release its own update. Operators will then need a maintenance window, since updating a PLC usually means that the process it controls must be halted. In regulated or safety-critical environments, a firmware change may require retesting or recertification. Devices that are no longer supported may never be updated, which is why network segmentation and access restrictions will remain relevant for a long time to come.

Vulnerabilities like these are not merely technical in nature. New EU regulations are placing increasing demands on product cybersecurity and the handling of security vulnerabilities.

Sep 11, 2026 Dec 11, 2027

Cyber Resilience Act (CRA)

Who it affects: Manufacturers

As of September 11, 2026, manufacturers must report actively exploited vulnerabilities and serious security incidents under certain conditions. Currently, there is no evidence of active exploitation of the described vulnerabilities. As of December 11, 2027, the full requirements will take effect, including vulnerability management and the provision of security updates. Manufacturers must also take into account the security of integrated components such as CODESYS.

Who it affects: Machine builders

Effective January 20, 2027, new requirements for machine safety will apply, including protection against tampering that could compromise machine safety. Vulnerabilities that allow the control logic to be hijacked may therefore be relevant to the compliance of affected machines.

Who it affects: Operators

Operators within the scope of NIS2 must adequately address cybersecurity risks, including risks in the supply chain. Vulnerabilities in OT components such as CODESYS may therefore be part of the required risk assessment and security measures.

Our Recommendations for Action

For operators of affected systems

Identify affected systems: Determine where CODESYS runtimes are in use, including devices where CODESYS is embedded in the manufacturer’s firmware.

Apply updates: Update Windows-based products and toolkits to version 3.5.22.50 and CODESYS Visualization to version 4.11.0.0. Update Linux-based CODESYS Control SL products to version 4.24.0.0 as soon as it is released. For devices with an embedded runtime, follow the device manufacturer’s instructions.

Restrict network access: Allow access to CODESYS online services only from trusted development systems. Do not expose CODESYS runtimes to untrusted networks or the Internet, and use a VPN with strong authentication for remote access.

Secure engineering workstations: Keep them up to date with the latest version of CODESYS, restrict user access, and connect them only to trusted runtimes.

Monitor CODESYS traffic: Use OT network monitoring to detect connections to CODESYS online services from unexpected systems.

For manufacturers who rely on CODESYS

Ship patched firmware: Integrate the patched runtimes into your firmware and notify your customers via your own security advisories.

Test the platform layer: Include the platform-specific code related to the runtime in your security testing. Two of the disclosed vulnerabilities are located in the Linux and QNX platform layers.

Build security into the lifecycle: Make security testing an integral part of the product lifecycle, in accordance with CRA and IEC 62443-4-1.

The eleven security vulnerabilities disclosed so far are only a part of the “PLC2Shell” research project. In total, we have reported approximately 40 findings affecting the CODESYS Runtime as well as the visualization and engineering components.

The remaining findings are still undergoing coordinated disclosure with CODESYS and CERT@VDE. We will publish additional articles, including one on the engineering components, as soon as fixes are available, and plan to present the complete research at a conference in 2027.

Coordinated Disclosure

We reported all findings to CODESYS GmbH in July 2026, with CERT@VDE coordinating the disclosure. We would like to thank the CODESYS Product Security Team and CERT@VDE for their cooperation.

Timeline of with the vendor:

July 2026 Day 0 Report On July 7, a secure reporting channel was established with CERT@VDE; a complete report containing proof-of-concept exploits was submitted to CODESYS via CERT@VDE.

On July 7, a secure reporting channel was established with CERT@VDE; a complete report containing proof-of-concept exploits was submitted to CODESYS via CERT@VDE.

September 16, 2026 Day 71 CODESYS CODESYS reports that the initial issues have already been resolved; the remaining ones are currently being investigated.

CODESYS reports that the initial issues have already been resolved; the remaining ones are currently being investigated.

September 30, 2026 Day 85 CODESYS A finding that was attributed to a third-party component and forwarded to its vendor for separate disclosure.

A finding that was attributed to a third-party component and forwarded to its vendor for separate disclosure.

October 27, 2026 Day 112 CODESYS CODESYS publishes the triage status of all reports as well as a schedule for the release of bug fixes

CODESYS publishes the triage status of all reports as well as a schedule for the release of bug fixes

October 29, 2026 Day 114 CVE IDs First CVE IDs assigned; publication agreement: no proof-of-concept code, general blog posts, drafts are shared with CODESYS in advance.

First CVE IDs assigned; publication agreement: no proof-of-concept code, general blog posts, drafts are shared with CODESYS in advance.

November 24, 2026 Day 140 Advisory Advisory VDE-2026-154 for CODESYS Visualization published; corrected version 4.11.0.0 available.

Advisory VDE-2026-154 for CODESYS Visualization published; corrected version 4.11.0.0 available.

November 30, 2026 Day 146 Advisory Notes VDE-2026-169 and VDE-2026-170 for CODESYS Control published; corrected version 3.5.22.50 available.

Notes VDE-2026-169 and VDE-2026-170 for CODESYS Control published; corrected version 3.5.22.50 available.

December 2026 (planned) Planned Release of Version 4.24.0.0 for Linux-based CODESYS Control SL products

Release of Version 4.24.0.0 for Linux-based CODESYS Control SL products

CERT@VDE CERT@VDE Advisory VDE-2026-169: CODESYS Control – Multiple Vulnerabilities

CERT@VDE CERT@VDE Advisory VDE-2026-170: CODESYS Control – Multiple Vulnerabilities in the Linux/QNX Platform Adaptation Layer

CERT@VDE CERT@VDE Advisory VDE-2026-154: CODESYS Visualization – Multiple Vulnerabilities

CVE CVE record CVE-2026-127148

CODESYS CODESYS downloads and updates

“PLC2Shell” is our own name for this research project. It is an independent project that is neither affiliated with CODESYS GmbH nor authorized or supported by it. “CODESYS” is a trademark of CODESYS GmbH, used here solely to identify the product in question. Schneider Electric, ABB, WAGO, Phoenix , OWEN and ifm and their logos are trademarks of their respective owners. They are named solely as examples of the use of CODESYS. Naming them does not imply any affiliation, endorsement or vulnerability of their products.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.