Read the docs

Use after free in CODESYS Control allows remote code execution

Priority MEDIUM 40CWE-416Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
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-416 and the CVSS impact.

Summary

CODESYS Control products from 3.5.22.0 before 3.5.22.50 and from 4.21.0.0 before 4.24.0.0 contain a use-after-free flaw (CWE-416) in the WebSocket handling of the web server component. An unauthenticated remote attacker can send crafted WebSocket frames to access a previously released connection object. Remote code execution is possible only if the attacker has previously obtained information about the memory layout of the runtime process on the targeted device.

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

Description from the CNA

The affected products contain a use-after-free vulnerability in the WebSocket handling of the web server component. An unauthenticated remote attacker can send specially crafted WebSocket frames to trigger access to a previously released connection object. Successful exploitation may result in remote code execution if the attacker has previously obtained sufficient information about the memory layout of the runtime process on the targeted device.

Why it matters now

EPSS 0.00564 40th percentileScored 2026-11-30
Fix Fixed Control RTE (SL) (CODESYS): 3.5.22.50Control RTE (for Beckhoff CX) SL (CODESYS): 3.5.22.50+14 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.5.22.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl RTE (for Beckhoff CX) SL3.5.22.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl Win (SL)3.5.22.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSHMI (SL)3.5.22.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSRuntime Toolkit3.5.22.0 to before 3.5.22.503.5.22.50Patch availableCNA
CODESYSControl for BeagleBone SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for emPC-A/iMX6 SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for IOT2000 SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Linux ARM SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Linux SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PFC100 SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PFC200 SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for PLCnext SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for Raspberry Pi SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSControl for WAGO Touch Panels 600 SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
CODESYSVirtual Control SL4.21.0.0 to before 4.24.0.04.24.0.0Patch availableCNA
  • Control RTE (SL) VendorCODESYS Affected 3.5.22.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.5.22.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Control Win (SL) VendorCODESYS Affected 3.5.22.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • HMI (SL) VendorCODESYS Affected 3.5.22.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Runtime Toolkit VendorCODESYS Affected 3.5.22.0 to before 3.5.22.50 Fixed in 3.5.22.50 Patch available CNA
  • Control for BeagleBone SL VendorCODESYS Affected 4.21.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 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for IOT2000 SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Linux ARM SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Linux SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PFC100 SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PFC200 SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for PLCnext SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Control for Raspberry Pi SL VendorCODESYS Affected 4.21.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 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA
  • Virtual Control SL VendorCODESYS Affected 4.21.0.0 to before 4.24.0.0 Fixed in 4.24.0.0 Patch available CNA

Remediation

Update Control RTE (SL), Control RTE (for Beckhoff CX) SL, Control Win (SL), HMI (SL) and Runtime Toolkit to 3.5.22.50. Update Control for BeagleBone SL, Control for emPC-A/iMX6 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 and Control for WAGO Touch Panels 600 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 HMI (SL) (CODESYS) Fixed in 3.5.22.50
  • Fix · CNA Runtime Toolkit (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

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-99730 Out-of-bounds write in CODESYS Control lets attackers run codePriority MEDIUM 42
    • TI-2026-99736 Memory leak in CODESYS Control RTE lets UDP packets exhaust buffersPriority MEDIUM 41
    • 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-99730 Out-of-bounds write in CODESYS Control lets attackers run codePriority MEDIUM 42
    • TI-2026-99733 Out-of-bounds write in CODESYS Control runtime for LinuxPriority MEDIUM 41
    • TI-2026-99727 Integer underflow in CODESYS Control WebVisu allows memory disclosurePriority LOW 38
Show 1 more group
  • 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-99730 Out-of-bounds write in CODESYS Control lets attackers run codePriority MEDIUM 42
    • 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

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-127071
  2. 2026-11-30 Alias added: GHSA-hpm2-98hv-p46h

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