Automated Threat Modeling

Brief Summary: CODESYS Control CVE-2026-127148, an Unauthenticated Out-of-Bounds Write Enabling Remote Code Execution

A brief summary of CVE-2026-127148, a critical out-of-bounds write in the CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime that can allow unauthenticated remote code execution. The post covers the root cause, the affected product families, and the split patch status across the 3.5.22.50 and 4.24.0.0 release lines.

CVE Analysis

8 min read

Gaurav Sarraf
Gaurav Sarraf

2026-11-30

Brief Summary: CODESYS Control CVE-2026-127148, an Unauthenticated Out-of-Bounds Write Enabling Remote Code Execution

Introduction

A single crafted packet sent to the CODESYS online protocol service may be enough for an unauthenticated remote attacker to run arbitrary code on a broad set of industrial control runtimes, gateways, visualization products and engineering tools. At disclosure time the vendor had shipped a fix for only one of the two affected product lines, so many Linux and embedded deployments will depend on network restrictions until a release planned for December 2026 becomes available.

CODESYS GmbH is headquartered in Kempten, Germany, traces its establishment to 1994, and develops manufacturer-independent IEC 61131-3 automation software used to program PLCs and related controllers. The vendor reports 2 million new licenses worldwide per year, customers that are predominantly manufacturers of programmable automation components and controllers, and tens of thousands of users across industrial sectors. Many hardware manufacturers embed the CODESYS runtime in their own devices, so a runtime flaw can surface in products sold under other brands. License volume is still not a count of vulnerable or exposed installations.

The NVD input for this CVE lists the vendor as Unknown. The CERT@VDE advisory resolves this as CODESYS GmbH.

Technical Information

Root cause

The vulnerable code lives in CmpChannelMgr and CmpChannelMgrEmbedded, the channel management layers of the CODESYS Control runtime system. These components handle online service packets arriving over the CODESYS online protocol. According to CERT@VDE, they perform improper length checking on those packets, so a crafted packet can cause a write past the end of a buffer. The issue is classified as CWE-787 (out-of-bounds write), and that memory corruption is what makes unauthenticated remote code execution possible.

Logically, the fix must ensure that length fields in incoming packets agree with the real buffer size before any data is copied. CODESYS Control is closed source, so there is no public commit, diff or code snippet. All patch evidence comes from the coordinated advisory VDE-2026-169 (CODESYS Advisory 2026-17) and its machine-readable CSAF file.

Severity scoring

CERT@VDE assigns a CVSS v3.1 base score of 9.8 (Critical):

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

The CVE record also lists a CVSS v4.0 score of 9.3 (Critical):

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

The two numbers come from different scoring models and do not compete with each other, so we recommend keeping the version next to the number when prioritizing. Both vectors describe a network-reachable issue with low attack complexity, no privileges and no user interaction, and high impact to confidentiality, integrity and availability. The vectors assess properties of the flaw. Neither one records a successful attack on a specific installation.

Attack flow

Based on the advisory, the disclosed attack sequence is short:

  1. The attacker obtains network reachability to a device or application exposing the CODESYS online protocol service.
  2. The attacker sends a specially crafted online service packet. No valid user account or authentication is required.
  3. CmpChannelMgr or CmpChannelMgrEmbedded processes the packet with insufficient length checking, and data is written outside the intended buffer boundary.
  4. The resulting memory corruption can be leveraged to execute arbitrary code on the affected product.

What is not disclosed

The primary records do not specify the vulnerable TCP or UDP port, the exact packet layout or field that drives the overwrite, the affected processor architecture, whether the corruption is on the heap or the stack, exploit code, or exploitation reliability. They also do not establish a particular physical process consequence for this CVE. Any claim beyond the four-step flow above goes further than the published evidence.

Exploitation status

As of 30 November 2026, the reviewed sources do not substantiate an active exploitation campaign. Feedly reports no evidence of exploitation and no evidence of a public proof of concept. VulDB states that technical details are unknown and no exploit is publicly available. Rapid7 marks the CVE as not present in the CISA KEV catalog. That is a database status, and it says nothing about whether the bug can be exploited. No threat actor attribution or indicators of compromise have been published. Technical exploitability is well documented here; observed attacker activity is not.

Patch Information

CODESYS has fixed CVE-2026-127148 in only one of its two product lines so far. The 3.5.x products can be patched now by upgrading to 3.5.22.50. The Linux and embedded line needs 4.24.0.0, which had not been released when the advisory came out on 30 November 2026.

Two fix lines, two statuses

  • 3.5.x products: affected from 3.0.0.0 up to but not including 3.5.22.50. Fixed in 3.5.22.50. CSAF status: vendor_fix, available now.
  • 4.x Linux and embedded products: affected from 3.5.0.0 up to but not including 4.24.0.0. Fixed in 4.24.0.0. CSAF status: none_available, release planned for December 2026.

The none_available tag on the 4.x remediation, in place of vendor_fix, is the clearest signal that only one branch can be patched today. Some third-party trackers list the fix as Available for every product, which is misleading for the 4.x group. CERT@VDE only says the release is planned for December 2026 and gives no exact date.

One update fixes five CVEs

The same 3.5.22.50 and 4.24.0.0 builds also fix four other runtime CVEs from VDE-2026-169:

  • CVE-2026-127146: CmpAppBP authorization
  • CVE-2026-127147: CmpSettings integer underflow
  • CVE-2026-127149: CmpRedundancy authorization
  • CVE-2026-127150: CmpOpenSSL path traversal

Where to get the update

The Development System and add-on products can be updated through the CODESYS Installer or downloaded from the CODESYS Store. For other runtimes, CODESYS points to its Update area. Many vendor-branded PLCs embed the CODESYS runtime, and those devices will usually receive the fix through the OEM's own firmware, not directly from CODESYS. After any update, confirm that the runtime version is at or above the fixed build for its branch.

Interim network restrictions from the advisory

The advisory publishes four access measures, listed separately from the software fix. They matter most for the 4.24.0.0 group, where no update exists yet:

  • Restrict network access to CODESYS online protocol services with firewalls and segmentation.
  • Allow connections only from trusted systems and networks.
  • Prevent direct exposure of affected devices to untrusted networks, including the Internet.
  • Where remote access is required, use secure VPN connections and strong authentication mechanisms.

These controls limit who can reach the vulnerable service. They do not correct the length-checking defect, and the advisory does not claim they do.

Credits

The vulnerability was reported by f0rw4rd (Felix Eberstaller) of Limes Security / QuellSec and by Luca Borzacchiello of Nozomi Networks. CERT@VDE coordinated the disclosure and is the assigning CNA. These names acknowledge the researchers and attribute nothing to an adversary.

Affected Systems and Versions

All product names below carry the CODESYS prefix. Upper bounds are exclusive, so match the installed version against the correct family instead of relying on the product name alone.

Family 1: version 3.0.0.0 and later, before 3.5.22.50 (fix available in 3.5.22.50)

  • Control RTE (SL)
  • Control RTE (for Beckhoff CX) SL
  • Control Win (SL)
  • Development System 3 (the affected part is the bundled simulation runtime)
  • Edge Gateway for Windows
  • Embedded Target Visu Toolkit
  • Gateway
  • HMI (SL)
  • OPC DA Server SL
  • PLCHandler
  • Remote Target Visu
  • Runtime Toolkit
  • Safety SIL2

Family 2: version 3.5.0.0 and later, before 4.24.0.0 (fix planned in 4.24.0.0, December 2026)

  • Control for BeagleBone SL
  • Control for IOT2000 SL
  • Control for Linux ARM SL
  • Control for Linux SL
  • Control for PFC100 SL
  • Control for PFC200 SL
  • Control for PLCnext SL
  • Control for Raspberry Pi SL
  • Control for WAGO Touch Panels 600 SL
  • Control for emPC-A/iMX6 SL
  • Edge Gateway for Linux
  • TargetVisu for Linux SL
  • Virtual Control SL

The scope extends well beyond PLC runtimes to engineering software, gateways, visualization products and toolkits. The sources do not quantify how many installations fall into either family.

Vendor Security History

2023, CODESYS V3 SDK (Microsoft research). Microsoft's cyberphysical systems researchers reported CODESYS V3 SDK vulnerabilities to CODESYS in September 2022 and published their research on 10 August 2023. The same issue appeared in 15 places in the SDK, affecting versions earlier than 3.5.19.0, and Microsoft recommended updating to 3.5.19.0 or above. Microsoft demonstrated remote code execution using 12 buffer overflow vulnerabilities, but exploitation required user authentication, deep knowledge of the proprietary protocol, and bypasses of DEP and ASLR. CVE-2026-127148 differs materially because the current disclosure describes an unauthenticated attacker, so those historical prerequisites should not be assumed here.

2021, CODESYS V2 runtimes (Bosch PSIRT). A Bosch advisory published on 9 July 2021 documented CODESYS V2 vulnerabilities in Bosch Rexroth products, including the IndraLogic and IndraMotion families. It covered CVE-2021-30186, CVE-2021-30195 and CVE-2021-30188, affecting CODESYS V2 runtimes before 2.4.7.55, where crafted communication packets could cause denial of service or, in the worst case, remote code execution. The case shows how CODESYS components become part of other manufacturers' exposure. It does not mean those Bosch devices are affected by CVE-2026-127148.

Security processes. CODESYS states that it regularly checks its software components for vulnerabilities, that product development and security procedures are based on IEC 62443, and that the German companies of the group are certified according to DIN EN ISO/IEC 27001. It operates a vulnerability reporting form, a coordinated disclosure policy and a security contact at security(at)codesys.com. These process statements do not guarantee that individual products are free of vulnerabilities, as the recurring memory-safety history shows.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization