CODESYS Flaws: How to Review and Isolate Affected PLCs

CODESYS Flaws: How to Review and Isolate Affected PLCs

Researchers have disclosed around 40 vulnerabilities in CODESYS, components found in PLCs from various manufacturers that could allow remote code execution, denial of service, or memory corruption. The risk affects industrial systems that control physical processes; updates may take time because each manufacturer must integrate them into its firmware, and plants must validate them and schedule their installation.

The software may be integrated into controllers from several manufacturers, so the PLC brand alone is not enough to rule out exposure. ThreatsEye notes that some organizations do not know which devices run CODESYS or which version they include. The sources do not specify affected version ranges; to confirm whether a specific model is exposed, consult the advisories from CODESYS and the controller manufacturer.

Shield53 Insights describes flaws in the CODESYS Control runtime, the Development System development environment, and Gateway Server. Possible effects include remote code execution, denial of service, memory corruption, and authentication bypass. Shield53 states that, at the time of disclosure, there was no confirmed exploitation in real-world environments.

Component mentionedWhat to check
CODESYS Control runtimeWhether it is integrated into the PLC and which version it uses.
Development System (IDE)Whether it is used on engineering workstations and which update applies.
Gateway ServerWhether it is installed and whether it is accessible from untrusted networks.

Steps to find out whether your PLCs are exposed

  1. Inventory the controllers. List the installed PLCs and record the manufacturer, model, and location within the process. Include older controllers and equipment at distributed facilities. Shield53 recommends identifying every CODESYS-based PLC; ThreatsEye warns that the software may be hidden behind the manufacturer's brand.

  2. Confirm the presence and version of CODESYS. Review the equipment documentation and maintenance records, and ask the manufacturer or integrator to confirm whether the PLC incorporates CODESYS. Record the runtime version and controller firmware version separately. If you cannot determine this from the information available at the plant, ask the OEM—the original equipment manufacturer—to verify it.

  3. Check each device against official advisories. Consult CODESYS security announcements and the PLC manufacturer's advisories. A fix published by CODESYS does not necessarily mean an update is available for your controller: the manufacturer must integrate it into its firmware. ThreatsEye recommends confirming the CVE identifiers, severity, and affected version ranges there before prioritizing.

  4. Review who can reach the control network. Check whether PLCs or CODESYS Gateway Server instances are accessible from the Internet, the corporate network, or vendor support connections. Shield53 advises blocking access from untrusted networks and restricting remote access. Cyberoly reports more than 1,000 CODESYS-based devices directly accessible from the Internet, but that alone does not identify devices at a particular plant or confirm that they are vulnerable.

  5. Reduce exposure immediately. Isolate the PLC network from the Internet and from corporate networks that do not need to communicate with it. Restrict remote connections; if vendor support is necessary, Shield53 recommends routing it through an intermediary system with controlled access, multifactor authentication, and session logging. Keep engineering access on dedicated, monitored workstations, as ThreatsEye suggests.

  6. Check access controls. Review Gateway Server instances and make sure they require authentication. Shield53 warns that default credentials and unauthenticated access are common configuration errors. Do not assume a device is protected just because it is inside the plant network: verify which users and systems can reach it.

  7. Establish a traffic baseline. Monitor for unexpected connections to Gateway Server; Shield53 notes that it typically uses TCP port 2455. Alert on logic downloads outside scheduled changes, memory read or write commands from workstations not intended for engineering, and unexpected sessions with controllers. Analysis should be passive and adapted to the industrial network so it does not introduce changes to the process.

  8. Plan the update with the manufacturer. Ask the OEM about firmware availability and timelines for each affected model. Before installing it in production, validate the update in a test environment and coordinate deployment with a planned maintenance shutdown. ThreatsEye describes a chain that includes component integration, manufacturer testing, operator validation, and scheduling the plant intervention.

  9. Decide what to do with unsupported equipment. If the manufacturer no longer provides updates, document this and plan to replace the controller. While it remains in service, apply compensating controls: segmentation, restricted access, and monitoring. Shield53 recommends planning to replace hardware that has reached end of life.

Mistakes to avoid

Do not update blindly. Installing firmware directly on a production PLC without validation can affect operations or process safety. The remediation path depends on the equipment manufacturer, not just on whether CODESYS has published an update. Coordinate testing and deployment with the OEM and the staff responsible for the process.

Do not assume all models are affected equally. The sources do not provide a complete list of vulnerable versions or a mapping by manufacturer and model. Do not assign a fixed version or assume a device is vulnerable based solely on its brand: confirm the applicable range in official advisories and with the vendor.

Do not confuse visibility with protection. Finding the PLC in the inventory does not, by itself, reduce who can connect to it. Nor is it enough to wait for a patch if the device remains exposed for months: Shield53 and ThreatsEye recommend segmenting and monitoring the network while updates are being arranged.

Do not leave remote access unchecked. Connections enabled for vendor support can increase exposure. Remove those that are unnecessary and subject essential ones to access controls, authentication, and session logging.

The first practical outcome should be a list of PLCs with their manufacturer, firmware, and CODESYS version, along with their exposure status and the OEM's response. For each device, the outstanding question is specific: what validated firmware does its manufacturer offer?

Sources: Shield53 Insights, ThreatsEye, Cyberoly, CISO AI