Threat reportVulnerabilityTL-2026-7414
Critical CODESYS Out-of-Bounds Write (CVE-2026-127148) Enables Unauthenticated Takeover of Industrial Controllers (PLC2SHELL)
CVE-2026-127148 is a CVSS 9.8 out-of-bounds write (CWE-787) in the CODESYS CmpChannelMgr and CmpChannelMgrEmbedded components that parse online-service packets. An unauthenticated network attacker can send a crafted packet to execute arbitrary code on the controller. No in-the-wild exploitation or public exploit code is known; Limes Security researchers demonstrated lab code execution on Windows, Linux and VxWorks runtimes and on a Schneider Electric Modicon M241, and are withholding exploit details.
Key facts
| Identifiers | TL-2026-7414, CVE-2026-127148, CVE-2026-127149, CVE-2026-127147, CVE-2026-127150, CVE-2026-127146, CVE-2026-127169, CVE-2026-127170 |
|---|---|
| Also known as | PLC2SHELL |
| Severity | CRITICAL |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| First disclosed | |
| EPSS | CVE-2026-127148: 0.9% (62.8th percentile) |
| Affected products | CODESYS GmbH CODESYS Control RTE (SL), Control RTE (for Beckhoff CX) SL, Control Win (SL), Runtime Toolkit, Embedded Target Visu Toolkit, Remote Target Visu, Safety SIL2, Gateway, Edge Gateway for Windows, HMI (SL), OPC DA Server SL, PLCHandler, Development System 3; CODESYS GmbH CODESYS Control for BeagleBone SL, emPC-A/iMX6 SL, IOT2000 SL, Linux ARM SL, Linux SL, PFC100 SL, PFC200 SL, PLCnext SL, Raspberry Pi SL, WAGO Touch Panels 600 SL, Virtual Control SL, Edge Gateway for Linux, TargetVisu for Linux SL |
| Weaknesses (CWE) | CWE-787, CWE-863, CWE-191, CWE-22 |
| MITRE ATT&CK techniques | T0813 Denial of Control, T0814 Denial of Service, T0826 Loss of Availability, T0831 Manipulation of Control, T0832 Manipulation of View, T0836 Modify Parameter, T0857 System Firmware, T0866 Exploitation of Remote Services, T0883 Internet Accessible Device, T0888 Remote System Information Discovery, T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution and 2 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | industrial automation, manufacturing, critical infrastructure |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 8 cited sources |
Detection coverage
As of 2026-12-04, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7414 across Splunk SPL, Microsoft KQL and Sigma, covering 23 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: CODESYS Online-Service Access from Non-Engineering Host (CVE-2026-127148 PLC2SHELL) — Exploitation
Detects accepted firewall connections to CODESYS V3 online-service/gateway ports (TCP 1217, TCP 11740, UDP 1740-1743) from hosts outside the engineering-workstation allowlist. CVE-2026-127148 is a pre-auth out-of-bounds write (CWE-787) in CmpChannelMgr/CmpChannelMgrEmbedded reachable only through these online services, and vendor guidance is to monitor for CODESYS connections from unexpected systems. No exploit signature is public, so this behaviour-first detection is the primary exploitation tripwire.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190, T1210
- Data sources: pan:traffic, fgt_traffic, cisco:asa, firewall
- Severity: high
- Confidence: high
Splunk SPL
```CVE-2026-127148 PLC2SHELL TL-2026-7414: CODESYS online-service connections from hosts outside the engineering allowlist```
index=ot_network sourcetype IN ("pan:traffic","fgt_traffic","cisco:asa") dest_port IN (1217,11740,1740,1741,1742,1743) action IN ("allowed","allow","accept")
| where NOT cidrmatch("10.10.50.0/24", src_ip)
| stats count AS connections min(_time) AS first_seen max(_time) AS last_seen values(dest_port) AS ports dc(dest_ip) AS controllers values(dest_ip) AS controller_ips BY src_ip
| convert ctime(first_seen) ctime(last_seen)Microsoft KQL
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DestinationPort in (1217, 11740, 1740, 1741, 1742, 1743)
| where DeviceAction in~ ("allow", "allowed", "accept")
| where not(ipv4_is_in_range(SourceIP, "10.10.50.0/24"))
| summarize Connections = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Ports = make_set(DestinationPort), Controllers = dcount(DestinationIP) by SourceIP
| project SourceIP, Connections, Controllers, Ports, FirstSeen, LastSeenSigma
title: CODESYS Online Service Connection from Non-Engineering Host (CVE-2026-127148)
id: 7c1e5a42-3b8d-4f6e-9a21-5d0c8e7b1a01
status: experimental
description: Detects allowed firewall connections to CODESYS V3 online-service and gateway ports from hosts outside the engineering workstation range. CVE-2026-127148 (PLC2SHELL) is a pre-auth out-of-bounds write reachable via these services.
references:
- https://certvde.com/en/advisories/VDE-2026-169/
- https://plc2shell.com/en/plc2shell-vulnerability/
author: Threadlinqs Team
date: 2026/12/03
tags:
- attack.initial-access
- attack.t1190
- attack.lateral-movement
- attack.t1210
- cve.2026.127148
logsource:
category: firewall
detection:
selection:
dst_port:
- 1217
- 11740
- 1740
- 1741
- 1742
- 1743
filter_engineering:
src_ip|cidr: '10.10.50.0/24'
condition: selection and not filter_engineering
falsepositives:
- Engineering workstations, jump hosts or vendor remote-support systems not yet in the allowlist
- Asset-discovery or OT monitoring platforms that poll CODESYS gateways
level: highKnown false positives:
- Engineering workstations, jump hosts or vendor remote-support systems not yet in the allowlist
- OT asset-discovery or monitoring platforms that poll CODESYS gateways and runtimes
Tuning notes: Replace 10.10.50.0/24 with your engineering-workstation subnets or an allowlist lookup. Confirm ports against your deployment (V3 gateway 1217, runtime 11740, discovery UDP 1740-1743) and adjust index/sourcetype to your firewall or OT network-monitor feed. Scope to PLC/controller subnets to reduce noise.
- Inbound Connection to CODESYS Runtime Process from Non-Engineering Host (Endpoint Telemetry) — Exploitation · unlock with TL Creds
- CODESYS Linux Runtime Spawning Shell or Download Utility — Post-Exploitation · unlock with TL Creds
- CODESYS Port Fan-Out Across Multiple Controllers — Lateral Movement · unlock with TL Creds
- CODESYS Runtime Crash or Unexpected Restart (Failed or Unstable Exploitation) — Exploitation · unlock with TL Creds
- CODESYS Runtime Application or Config File Modified by Non-Runtime Process — Persistence · unlock with TL Creds
- CODESYS Runtime Loading DLL from User-Writable Path — Post-Exploitation Payload Injection · unlock with TL Creds
- CODESYS Windows Runtime Spawning Shell or LOLBin Child Process — Post-Exploitation · unlock with TL Creds
- CODESYS Runtime Initiating Outbound Connection to Non-Private Address — C2 · unlock with TL Creds
Indicators of compromise
As of 2026-12-04, Threadlinqs Intelligence tracks 23 indicators of compromise for TL-2026-7414.
Technical analysis
CVE-2026-127148 was published by CERT@VDE on 2026-11-30 in advisory VDE-2026-169 (CODESYS Control: Multiple Vulnerabilities). The CmpChannelMgr and CmpChannelMgrEmbedded components perform improper length checking when handling online service packets, which produces an out-of-bounds write (CWE-787). An unauthenticated remote attacker who can reach the controller's online services can send a crafted packet and execute arbitrary code. The CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8); CVSS 4.0 scores it 9.3. CISA's SSVC assessment (CISA-ADP) lists Exploitation: none, Automatable: yes, Technical Impact: total. The 30-day EPSS reported by a secondary source was 0.97%.
The flaw was found as part of the PLC2SHELL research by Felix Eberstaller (f0rw4rd, Limes Security / QuellSec), with Luca Borzacchiello (Nozomi Networks) also credited in the advisory. The project reported about 40 vulnerabilities in CODESYS Control Runtime, Visualization and engineering components; 11 CVEs have been published so far and about 30 further findings remain under coordinated disclosure. The report was submitted to CODESYS through CERT@VDE in July 2026. The researchers state they built a reliable exploit that works with ASLR enabled. Exploitation depended on heap layout and needed a different approach for Windows, Linux and VxWorks. On lab devices, post-exploitation persistence survived restarts and remained until the firmware was reflashed. Code execution was shown on Windows, Linux and VxWorks runtimes and on a physical Schneider Electric Modicon M241. All of this was lab work. Exploit details are withheld until patches are widely deployed. Whether the flaw can defeat a deployed safety function (CODESYS Safety SIL2) has not been demonstrated, although Safety SIL2 is listed as affected.
Twenty-six CODESYS products are affected. Thirteen Windows/toolkit/engineering products at 3.0.0.0 up to but not including 3.5.22.50 are fixed in 3.5.22.50, which is available. Thirteen Linux/embedded SL products at 3.5.0.0 up to but not including 4.24.0.0 are fixed in 4.24.0.0, which is planned for December 2026, so no fix existed at publication. In CODESYS Development System V3, the simulation runtime is affected. Many device makers (for example Beckhoff, WAGO, PLCnext, Schneider Electric) embed CODESYS runtimes in firmware, so operators may need to wait for vendor firmware updates.
The same disclosure batch includes related, lower-impact CVEs: in VDE-2026-169, CVE-2026-127149 (CWE-863, 7.1), CVE-2026-127147 (CWE-191, 6.5), CVE-2026-127150 (CWE-22, 5.5) and CVE-2026-127146 (CWE-863, 4.3), all requiring an authenticated account; in VDE-2026-154 (Visualization, fixed in 4.11.0.0), CVE-2026-121016/121017/121018 (8.8) and CVE-2026-121019 (3.3), where a tampered runtime or man-in-the-middle attacker can lead to code execution on the engineering workstation; and in VDE-2026-170 (Linux/QNX only), CVE-2026-127167 (7.2) and CVE-2026-127168 (4.3). The sources do not identify any threat actor, malware, C2 infrastructure or network IOCs. No BeaconBeagle lookup was applicable because there are no network IOCs. The IOC list below therefore records affected components, products and credited entities for exposure scoping and detection engineering, not attacker infrastructure.
Defensive priority: restrict the CODESYS online protocol services with firewalls and segmentation so only trusted engineering systems can reach them, never expose runtimes to untrusted networks or the Internet, and use VPNs with strong authentication for remote access. Monitor OT networks for CODESYS connections from unexpected systems. Patching alone may not reveal a prior compromise, so verify controller and application integrity.
MITRE ATT&CK techniques by tactic:
Inhibit Response Function
T0813 Denial of Control; T0814 Denial of Service
Impact
T0826 Loss of Availability; T0832 Manipulation of View; T1499 Endpoint Denial of Service
Impair Process Control
T0831 Manipulation of Control; T0836 Modify Parameter
Persistence
Lateral Movement
T0866 Exploitation of Remote Services; T1210 Exploitation of Remote Services
Initial Access
T0883 Internet Accessible Device; T1190 Exploit Public-Facing Application
Discovery
T0888 Remote System Information Discovery
Execution
Remediation
Patches
- Update Windows-based runtimes, toolkits, gateways and Development System 3 to CODESYS 3.5.22.50
- Update Linux/embedded SL products, Virtual Control SL and Edge Gateway for Linux to 4.24.0.0 when released (planned December 2026)
- Update CODESYS Visualization to 4.11.0.0 (related VDE-2026-154 flaws)
- For embedded devices, apply the device manufacturer's firmware update
Immediate actions
- Identify all CODESYS runtimes, gateways and engineering tools (including those embedded in vendor PLC firmware) and record their versions
- Restrict access to CODESYS online protocol services with firewalls and network segmentation so only trusted engineering systems can connect
- Remove any exposure of CODESYS runtimes to the Internet or other untrusted networks
- Monitor OT networks for CODESYS online-service connections from unexpected systems
Workarounds
- Until 4.24.0.0 is available, isolate Linux-based CODESYS controllers so online services are reachable only from trusted systems
- Disable or block online-service access from non-engineering hosts where operationally feasible
Longer-term hardening
- Require VPN with strong authentication for all remote access to controllers
- Keep engineering workstations updated and restrict user access to them
- Verify controller firmware and application integrity, since patching alone may not reveal a compromise
- Maintain an OT asset inventory that maps vendor firmware to embedded CODESYS runtime versions
Affected and fixed versions
- CODESYS GmbH — CODESYS Control RTE (SL), Control RTE (for Beckhoff CX) SL, Control Win (SL), Runtime Toolkit, Embedded Target Visu Toolkit, Remote Target Visu, Safety SIL2, Gateway, Edge Gateway for Windows, HMI (SL), OPC DA Server SL, PLCHandler, Development System 3
Vulnerable versions: 3.0.0.0 to < 3.5.22.50
Fixed in: 3.5.22.50 - CODESYS GmbH — CODESYS Control for BeagleBone SL, emPC-A/iMX6 SL, IOT2000 SL, Linux ARM SL, Linux SL, PFC100 SL, PFC200 SL, PLCnext SL, Raspberry Pi SL, WAGO Touch Panels 600 SL, Virtual Control SL, Edge Gateway for Linux, TargetVisu for Linux SL
Vulnerable versions: 3.5.0.0 to < 4.24.0.0
Fixed in: 4.24.0.0 (planned December 2026)
Timeline
Last updated · 2 updates · revalidated 2× · latest source
- Limes Security submitted the PLC2SHELL findings to CODESYS via CERT@VDE; a secure communication channel was established on July 7 (Day 0).
- CODESYS reported that initial issues were resolved (Day 71 of the disclosure process).
- One finding was attributed to a third-party component and forwarded to its vendor (Day 85).
- CODESYS published its triage status and fix schedule (Day 112).
- First CVE IDs for the PLC2SHELL findings were assigned (Day 114).
- CERT@VDE published VDE-2026-154 covering CODESYS Visualization flaws (fixed in 4.11.0.0).
- CERT@VDE VDE-2026-171 reported the same day: unauthenticated denial-of-service flaws in the CODESYS RTE network stack (CVE-2026-127169 and CVE-2026-127170, both CVSS 7.5).
- CODESYS 3.5.22.50 made available for the 13 Windows/toolkit/engineering products; the Linux/embedded fix 4.24.0.0 was announced as planned for December 2026.
- CERT@VDE published VDE-2026-169 and VDE-2026-170; CVE-2026-127148 (CVSS 9.8, CWE-787) was published and NVD ingested it the same day.
- The CVE-2026-127148 record was updated; CISA-ADP SSVC lists exploitation: none, automatable: yes, technical impact: total.
- Limes Security published the PLC2Shell write-up, withholding exploit details and reporting no evidence of active exploitation.
- The Hacker News reported the flaw; no in-the-wild exploitation or public PoC was reported and the researchers withheld exploit details until patches are widely deployed. The Linux-based fix (4.24.0.0) was still pending, planned for December 2026.
- GBHackers reported the disclosure and cited Limes Security's finding of 1,094 CODESYS devices reachable directly from the internet (reachability does not establish vulnerability); CODESYS estimates over 10 million compatible controllers. No active exploitation or public PoC reported.
- Cyber Security News reported the flaw; the Linux-based Control SL fix (4.24.0.0) was still scheduled for December 2026.
Update history
- 2026-12-04 — PLC2Shell: Critical Unauthenticated RCE in CODESYS Control Runtime (CVE-2026-127148): What changed No change to severity (CRITICAL), CVSS (9.8), exploitability (THEORETICAL) or status. The update is additive: a related advisory, exposure data and broader impact mapping.
- 2026-12-04 — PLC2Shell: Pre-Auth RCE in CODESYS Control Runtime (CVE-2026-127148): What changed No severity, exploitability or status change. Exploitability stays THEORETICAL: the newer report again states no evidence of active exploitation and no public PoC.
Sources cited
- CERT@VDE VDE-2026-169: CODESYS Control: Multiple Vulnerabilities certvde.com · Advisory · 2026-11-30
- CERT@VDE VDE-2026-154: CODESYS Visualization vulnerabilities certvde.com · Advisory · 2026-11-24
- CERT@VDE VDE-2026-170: CODESYS Control for Linux/QNX vulnerabilities certvde.com · Advisory · 2026-11-30
- CVE-2026-127148 record (CIRCL Vulnerability-Lookup / GCVE) vulnerability.circl.lu · Advisory · 2026-11-30
- PLC2SHELL: CODESYS vulnerability research (Limes Security) plc2shell.com · Research · 2026-11-30
- CVE-2026-127148: CODESYS Control RTE (SL) Buffer Overflow (SecurityOnline CVE Watchtower) securityonline.info · Blog · 2026-11-30
- Critical CODESYS Flaw Lets Hackers Take Over Industrial Controllers Without a Password The Hacker News · News · 2026-12-03
- 15 New CODESYS SDK Flaws Expose OT Environments (prior CODESYS V3 SDK research context) The Hacker News · News · 2023-08-01
Previous and next in vulnerability
- 2Shell disclosures (PHP2Shell, Brotli2Shell, NGINX2Root, Ruby) vs. actual KEV exploitation: CVE-2026-109618, CVE-2026-111497, CVE-2026-97229 and the PHP2Shell + Fragnesia PAN-OS chain Previous report
- CVE-2026-139281 - 21-year-old Linux kernel Netfilter conntrack IPv6 fragment offset truncation allows firewall rule bypass Next report
AI-drafted from 8 cited sources; published ; last updated .