Advisory

PLC2Shell: Pre-Auth RCE in CODESYS Control Runtime

Check your version

What are you running?

Enter the version shown in your CODESYS device view or the device's web interface.

  • CODESYS Control, Windows-based
    Fixed in3.5.22.50
  • CODESYS Control SL, Linux-based
    Planned for December 20264.24.0.0
  • CODESYS Visualization
    Fixed in4.11.0.0

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.

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

  • ~1,000device types
  • 500+manufacturers
  • 10M+CODESYS-compatible controllers
According to the vendor, approximately 1,000 device types from over 500 manufacturers are based on CODESYS, with well over 10 million CODESYS-compatible controllers in use. Examples of manufacturers that use CODESYS include Schneider Electric, ABB, WAGO, Phoenix Contact, OWEN, and ifm. This list is provided solely to illustrate the widespread use of CODESYS and does not imply that the products of these manufacturers are affected by the disclosed vulnerabilities. Whether a specific product is vulnerable depends on the CODESYS component used and its version.
  • Schneider Electric
  • ABB
  • WAGO
  • Phoenix Contact
  • OWEN
  • ifm electronic

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

CVE / Vendor IDCVE-2026-127148
CVSS v3.1 Score9.8 Critical
Product
CODESYS Control RTE (SL)
Affected versions
all versions from 3.0.0.0 before 3.5.22.50
Found by
Felix Eberstaller (f0rw4rd), Limes Security GmbH

CVSS vector

  • Attack vectorNetwork
  • ComplexityLow
  • PrivilegesNone
  • User interactionNone
  • ScopeUnchanged
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

CVECVSS 3.1What an attacker might doAdvisory
CVE-2026-1271489.8CriticalExecuting Arbitrary Code on the Controller Without Logging InVDE-2026-169
CVE-2026-1271677.2HighExecuting Arbitrary Code on Linux- and QNX-Based Controllers Using an Administrator AccountVDE-2026-170
CVE-2026-1271497.1HighChanging the redundancy configuration or preventing the PLC from controlling the process using an account with limited permissionsVDE-2026-169
CVE-2026-1271476.5MediumLaunch a denial-of-service attack using an account with limited privilegesVDE-2026-169
CVE-2026-1271505.5MediumDetermine whether files are present on the device and use an administrator account to induce a denial-of-service conditionVDE-2026-169
CVE-2026-1271464.3MediumChange the debugging settings configured by an authorized user using an account with limited permissionsVDE-2026-169
CVE-2026-1271684.3MediumExtract limited internal system information from a log file using an account with limited permissionsVDE-2026-170

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.

CVECVSS 3.1What an attacker might doAdvisory
CVE-2026-1210168.8HighLaunch a program on the engineering workstation that results in code being executedVDE-2026-154
CVE-2026-1210178.8HighTrigger local system components on the engineering workstation, which results in code executionVDE-2026-154
CVE-2026-1210188.8HighSend commands that call local functions on the engineering workstation, which results in code being executedVDE-2026-154
CVE-2026-1210193.3LowWrite files to any folder when a user creates a boot application from a tampered projectVDE-2026-154

Thoughts on Patches

  1. 1CODESYS fixCorrected runtime available
  2. 2Manufacturer firmwareEach manufacturer integrates and releases
  3. 3Maintenance windowThe controlled process must be halted
  4. 4RetestPossibly retesting or recertification

Devices no longer supported: Network segmentation and access restrictions remain relevant

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.

Regulatory Aspects

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, 2026Dec 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.

Jan 20, 2027

Machinery Directive

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.

In force

NIS2

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

  1. Identify affected systems: Determine where CODESYS runtimes are in use, including devices where CODESYS is embedded in the manufacturer’s firmware.
  2. 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.
  3. 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.
  4. Secure engineering workstations: Keep them up to date with the latest version of CODESYS, restrict user access, and connect them only to trusted runtimes.
  5. Monitor CODESYS traffic: Use OT network monitoring to detect connections to CODESYS online services from unexpected systems.

For manufacturers who rely on CODESYS

  1. Ship patched firmware: Integrate the patched runtimes into your firmware and notify your customers via your own security advisories.
  2. 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.
  3. Build security into the lifecycle: Make security testing an integral part of the product lifecycle, in accordance with CRA and IEC 62443-4-1.

Further Research

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 contact with the vendor:

  1. 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.

  2. Day 71
    CODESYS

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

  3. Day 85
    CODESYS

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

  4. Day 112
    CODESYS

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

  5. 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.

  6. Day 140
    Advisory

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

  7. Day 146
    Advisory

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

  8. Planned

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

References

“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 Contact, 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.