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
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
- Product
- CODESYS Control RTE (SL)
- Affected versions
- all versions from
3.0.0.0before3.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:HCVE-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.
| CVE | CVSS 3.1 | What an attacker might do | Advisory |
|---|---|---|---|
| CVE-2026-127148 | 9.8Critical | Executing Arbitrary Code on the Controller Without Logging In | VDE-2026-169 |
| CVE-2026-127167 | 7.2High | Executing Arbitrary Code on Linux- and QNX-Based Controllers Using an Administrator Account | VDE-2026-170 |
| CVE-2026-127149 | 7.1High | Changing the redundancy configuration or preventing the PLC from controlling the process using an account with limited permissions | VDE-2026-169 |
| CVE-2026-127147 | 6.5Medium | Launch a denial-of-service attack using an account with limited privileges | VDE-2026-169 |
| CVE-2026-127150 | 5.5Medium | Determine whether files are present on the device and use an administrator account to induce a denial-of-service condition | VDE-2026-169 |
| CVE-2026-127146 | 4.3Medium | Change the debugging settings configured by an authorized user using an account with limited permissions | VDE-2026-169 |
| CVE-2026-127168 | 4.3Medium | Extract limited internal system information from a log file using an account with limited permissions | VDE-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.
| CVE | CVSS 3.1 | What an attacker might do | Advisory |
|---|---|---|---|
| CVE-2026-121016 | 8.8High | Launch a program on the engineering workstation that results in code being executed | VDE-2026-154 |
| CVE-2026-121017 | 8.8High | Trigger local system components on the engineering workstation, which results in code execution | VDE-2026-154 |
| CVE-2026-121018 | 8.8High | Send commands that call local functions on the engineering workstation, which results in code being executed | VDE-2026-154 |
| CVE-2026-121019 | 3.3Low | Write files to any folder when a user creates a boot application from a tampered project | VDE-2026-154 |
Thoughts on Patches
- 1CODESYS fixCorrected runtime available
- 2Manufacturer firmwareEach manufacturer integrates and releases
- 3Maintenance windowThe controlled process must be halted
- 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
- 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.
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:
- Day 0Report
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.
- Day 71CODESYS
CODESYS reports that the initial issues have already been resolved; the remaining ones are currently being investigated.
- Day 85CODESYS
A finding that was attributed to a third-party component and forwarded to its vendor for separate disclosure.
- Day 112CODESYS
CODESYS publishes the triage status of all reports as well as a schedule for the release of bug fixes
- Day 114CVE IDs
First CVE IDs assigned; publication agreement: no proof-of-concept code, general blog posts, drafts are shared with CODESYS in advance.
- Day 140Advisory
Advisory VDE-2026-154 for CODESYS Visualization published; corrected version 4.11.0.0 available.
- Day 146Advisory
Notes VDE-2026-169 and VDE-2026-170 for CODESYS Control published; corrected version 3.5.22.50 available.
- Planned
Release of Version 4.24.0.0 for Linux-based CODESYS Control SL products
References
- CERT@VDECERT@VDE Advisory VDE-2026-169: CODESYS Control – Multiple Vulnerabilities
- CERT@VDECERT@VDE Advisory VDE-2026-170: CODESYS Control – Multiple Vulnerabilities in the Linux/QNX Platform Adaptation Layer
- CERT@VDECERT@VDE Advisory VDE-2026-154: CODESYS Visualization – Multiple Vulnerabilities
- CVECVE record CVE-2026-127148
- CODESYSCODESYS 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 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.