Read the docs

Out-of-bounds write in CODESYS Control lets attackers run code

Priority MEDIUM 42CWE-787Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.

Summary

Multiple CODESYS Control runtime products, including Control RTE (SL) and Control Win (SL), are affected from 3.0.0.0 before 3.5.22.50, and Control for BeagleBone SL and Control for emPC-A/iMX6 SL are affected from 3.5.0.0 before 4.24.0.0. Improper length checking of online service packets in the CmpChannelMgr components causes an out-of-bounds write (CWE-787). An unauthenticated remote attacker can send a specially crafted packet to execute arbitrary code.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

The CmpChannelMgr and CmpChannelMgrEmbedded components of the CODESYS Control runtime system performs improper length checking when handling online service packets, resulting in an out-of-bounds write. By sending a specially crafted packet, an unauthenticated remote attacker can exploit this flaw to execute arbitrary code on the affected product.

Why it matters now

EPSS 0.00965 60th percentileScored 2026-11-30
Fix Fixed Control RTE (SL) (CODESYS): 3.5.22.50Control RTE (for Beckhoff CX) SL (CODESYS): 3.5.22.50+24 more products

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
CODESYSControl RTE (SL)3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl RTE (for Beckhoff CX) SL3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl Win (SL)3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSRuntime Toolkit3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSEmbedded Target Visu Toolkit3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSRemote Target Visu3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSSafety SIL23.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSGateway3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSEdge Gateway for Windows3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSHMI (SL)3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSOPC DA Server SL3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSPLCHandler3.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSDevelopment System 33.0.0.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl for BeagleBone SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for emPC-A/iMX6 SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for IOT2000 SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Linux ARM SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Linux SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PFC100 SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PFC200 SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PLCnext SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Raspberry Pi SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for WAGO Touch Panels 600 SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSVirtual Control SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSEdge Gateway for Linux3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSTargetVisu for Linux SL3.5.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
  • Control RTE (SL) VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Control RTE (for Beckhoff CX) SL VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Control Win (SL) VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Runtime Toolkit VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Embedded Target Visu Toolkit VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Remote Target Visu VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Safety SIL2 VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Gateway VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Edge Gateway for Windows VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • HMI (SL) VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • OPC DA Server SL VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • PLCHandler VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Development System 3 VendorCODESYS Affected 3.0.0.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Control for BeagleBone SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for emPC-A/iMX6 SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for IOT2000 SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Linux ARM SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Linux SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PFC100 SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PFC200 SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PLCnext SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Raspberry Pi SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for WAGO Touch Panels 600 SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Virtual Control SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Edge Gateway for Linux VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • TargetVisu for Linux SL VendorCODESYS Affected 3.5.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA

Remediation

Upgrade the affected CODESYS products to 3.5.22.50, or upgrade Control for BeagleBone SL and Control for emPC-A/iMX6 SL to 4.24.0.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA Control RTE (SL) (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Control RTE (for Beckhoff CX) SL (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Control Win (SL) (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Runtime Toolkit (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Embedded Target Visu Toolkit (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Remote Target Visu (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Safety SIL2 (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Gateway (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Edge Gateway for Windows (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA HMI (SL) (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA OPC DA Server SL (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA PLCHandler (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Development System 3 (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Control for BeagleBone SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for emPC-A/iMX6 SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for IOT2000 SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for Linux ARM SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for Linux SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for PFC100 SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for PFC200 SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for PLCnext SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for Raspberry Pi SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Control for WAGO Touch Panels 600 SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Virtual Control SL (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA Edge Gateway for Linux (CODESYS) Fixed in 4.24.0.0
  • Fix · CNA TargetVisu for Linux SL (CODESYS) Fixed in 4.24.0.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    CODESYS Control RTE (SL), Control RTE (for Beckhoff CX) SL 3.5.22.50

    10 records Highest priority Priority MEDIUM 3 MEDIUM, 7 LOW

    Other records, highest priority first

    • TI-2026-99736 Memory leak in CODESYS Control RTE lets UDP packets exhaust buffersPriority MEDIUM 41
    • TI-2026-99725 Use after free in CODESYS Control allows remote code executionPriority MEDIUM 40
    • TI-2026-99735 Unchecked return value in CODESYS Control RTEPriority LOW 38
  • Release ·

    CODESYS Control for BeagleBone SL, Control for IOT2000 SL and 10 more products 3.5.22.50, 4.24.0.0

    10 records Highest priority Priority MEDIUM 3 MEDIUM, 7 LOW

    Other records, highest priority first

    • TI-2026-99733 Out-of-bounds write in CODESYS Control runtime for LinuxPriority MEDIUM 41
    • TI-2026-99725 Use after free in CODESYS Control allows remote code executionPriority MEDIUM 40
    • TI-2026-99727 Integer underflow in CODESYS Control WebVisu allows memory disclosurePriority LOW 38
Show 2 more groups
  • Release ·

    CODESYS Control Win (SL), HMI (SL) 3.5.22.50

    8 records Highest priority Priority MEDIUM 2 MEDIUM, 6 LOW

    Other records, highest priority first

    • TI-2026-99725 Use after free in CODESYS Control allows remote code executionPriority MEDIUM 40
    • TI-2026-99727 Integer underflow in CODESYS Control WebVisu allows memory disclosurePriority LOW 38
    • TI-2026-99723 Use-after-free in CODESYS Control WebSocket handling causes DoSPriority LOW 38
  • Release ·

    CODESYS Development System 3, Edge Gateway for Linux and 8 more products 3.5.22.50, 4.24.0.0

    5 records Highest priority Priority MEDIUM 1 MEDIUM, 4 LOW

    Other records, highest priority first

    • TI-2026-99732 Path traversal in CODESYS Control allows reading arbitrary filesPriority LOW 32
    • TI-2026-99731 Incorrect authorization in CODESYS Control CmpRedundancy componentPriority LOW 32
    • TI-2026-99729 Integer underflow in CODESYS Control enables denial of servicePriority LOW 32

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-127148
  2. 2026-11-30 Alias added: GHSA-f6r2-ww33-hvhq

References

  • TI-2021-12888 CODESYS Control Runtime system before 3.5.17.10 has a Heap-based Buffer Overflow. CVSS 3.1CRITICAL 9.8
  • TI-2019-10180 Stack-based buffer overflow in CODESYS V3 web server CVSS 3.1CRITICAL 9.8
  • TI-2021-13604 CODESYS V2 web server: crafted requests could trigger a null pointer dereference (DoS) CVSS 3.1HIGH 7.5
  • TI-2020-08257 CODESYS V3 web server before 3.5.15.40, as used in CODESYS Control runtime systems, has a buffer overflow. CVSS 3.1CRITICAL 9.8
  • TI-2019-13592 CODESYS 3 web server before 3.5.15.20, as distributed with CODESYS Control runtime systems, has a Buffer Overflow. CVSS 3.1CRITICAL 9.8
  • TI-2017-03937 Unrestricted file upload in 3S-Smart Software Solutions GmbH CODESYS Web Server CVSS 3.0CRITICAL 9.8
See all 174 →

Sources