VYPR
advisoryPublished Dec 3, 2026· 1 source

Critical CODESYS Flaw Allows Unauthenticated Remote Code Execution in Industrial Controllers

A critical vulnerability in CODESYS Control, widely used in industrial controllers, enables unauthenticated remote code execution, posing a significant threat to operational technology systems.

A critical vulnerability in CODESYS Control, the runtime software embedded in numerous industrial controllers, has been disclosed, allowing attackers to execute arbitrary code on these devices without any form of authentication. The flaw, tracked as CVE-2026-127148, resides within the components responsible for processing the controller's online services, the very interface used for programming and management. By exploiting this vulnerability, threat actors can gain unauthorized access and control over industrial systems, bypassing password protections entirely and requiring no user interaction.

The severity of this vulnerability is underscored by its CVSS score of 9.8, classifying it as critical. CODESYS GmbH, the developer of the platform, disclosed the issue through CERT@VDE, highlighting the potential for widespread compromise across various industrial sectors. The affected products are divided into two groups, with 13 products already having a patched version available, 3.5.22.50. The remaining 13, including Linux-based runtimes, are slated for a fix with version 4.24.0.0, expected later this month.

This critical flaw is part of a larger research project named PLC2SHELL, conducted by OT security firm Limes Security. The project uncovered approximately 40 vulnerabilities across CODESYS Control, visualization, and engineering components, with 11 now assigned CVE numbers. Researchers successfully demonstrated code execution on Windows, Linux, and VxWorks runtimes, as well as on a physical Schneider Electric Modicon M241 controller. While exploitation details are being withheld until patches are widely deployed, the potential impact on industrial operations is substantial.

CODESYS Control is a widely adopted platform, integrated into hardware from numerous device manufacturers. The list of affected products spans a broad range of industrial equipment, including controllers from Beckhoff, WAGO, and devices like the Raspberry Pi. With an estimated over 10 million CODESYS-compatible controllers in use globally, the attack surface for this vulnerability is extensive, potentially impacting critical infrastructure, manufacturing, and other industrial environments.

While CISA has assessed the flaw and noted no known exploitation in the wild, it has been rated as 'automatable,' indicating a high likelihood of future exploitation. The agency's assessment also lists exploitation as 'none' at the time of the advisory. Beyond the critical flaw, the PLC2SHELL research also identified ten other CVEs, though these generally require authenticated access or are less severe.

Mitigation strategies recommended by CODESYS and researchers include restricting network access to online services using firewalls and network segmentation, ensuring only trusted systems can connect. For remote access, the use of VPNs with strong authentication is advised. The advisory explicitly warns against exposing CODESYS runtimes to untrusted networks or the internet.

This vulnerability is particularly concerning given that many affected runtimes are embedded within device manufacturers' firmware. This means that end-users can only receive a patched version when the hardware vendor releases its own firmware update, a process that can be lengthy, especially in regulated industrial environments requiring retesting.

The CODESYS platform has been a target for security researchers before. In August 2023, Microsoft disclosed 16 previously known flaws, most of which required attacker authentication. The current critical vulnerability, however, bypasses this requirement, significantly lowering the barrier to entry for malicious actors and increasing the urgency for patching.

Synthesized by Vypr AI