CVE-2022-47390 is a stack-based out-of-bounds write (CWE-787) in the CmpTraceMgr component of the CODESYS V3 runtime: a logged-in attacker can send crafted requests that write attacker data onto the stack, crashing the controller or running code on it. It is fixed in CODESYS 3.5.19.0 and SL 4.8.0.0. NVD scores it 8.8.
Vulnerability summary
CVSS base score
8.8
High severity
EPSS score (FIRST)
1.3%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2022-47390 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| CODESYS Control RTE (for Beckhoff CX) SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_rte_\(for_beckhoff_cx\)_sl:*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Control RTE (SL) (CmpTraceMgr) | cpe:2.3:a:codesys:control_rte_\(sl\):*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Control Runtime System Toolkit (CmpTraceMgr) | cpe:2.3:a:codesys:control_runtime_system_toolkit:*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Control Win (SL) (CmpTraceMgr) | cpe:2.3:a:codesys:control_win_\(sl\):*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Development System V3 (simulation runtime) (CmpTraceMgr) | cpe:2.3:a:codesys:development_system_v3:*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS HMI (SL) (CmpTraceMgr) | cpe:2.3:a:codesys:hmi_\(sl\):*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Safety SIL2 PSP (CmpTraceMgr) | cpe:2.3:a:codesys:safety_sil2_psp:*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Safety SIL2 Runtime Toolkit (CmpTraceMgr) | cpe:2.3:a:codesys:safety_sil2_runtime_toolkit:*:*:*:*:*:*:*:* | before 3.5.19.0 (NVD, CODESYS Advisory 2023-02); fixed in 3.5.19.0 |
| CODESYS Control for BeagleBone SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_beaglebone_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for emPC-A/iMX6 SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_empc-a\/imx6_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for IOT2000 SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_iot2000_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for Linux SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_linux_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for PFC100 SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_pfc100_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for PFC200 SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_pfc200_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for PLCnext SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_plcnext_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for Raspberry Pi SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_raspberry_pi_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| CODESYS Control for WAGO Touch Panels 600 SL (CmpTraceMgr) | cpe:2.3:a:codesys:control_for_wago_touch_panels_600_sl:*:*:*:*:*:*:*:* | before 4.8.0.0 (NVD, CODESYS Advisory 2023-02); fixed in 4.8.0.0 |
| Rockwell Automation LP30, LP40, LP50 and BM40 Operator Panels | — | CODESYS before 3.5.19.0 (CISA ICSA-24-030-07); Rockwell: upgrade to CODESYS 3.5.19.2; no NVD CPE |
| Schneider Electric Modicon M241 / M251 controllers | — | firmware before 5.2.11.18 (CISA ICSA-26-020-02, Schneider SEVD-2023-192-04); fixed in 5.2.11.18; no NVD CPE |
| Schneider Electric Modicon M262 controller | — | firmware before 5.2.8.12 (CISA ICSA-26-020-02); fixed in 5.2.8.12; no NVD CPE |
| Schneider Electric PacDrive 3 LMC Eco/Pro/Pro2 controllers | — | firmware before 1.76.14.1 (CISA ICSA-26-020-02); fixed in 1.76.14.1; no NVD CPE |
| Schneider Electric Modicon M258 and LMC058 controllers | — | all versions, no fixed version listed; mitigations only (CISA ICSA-26-020-02); no NVD CPE |
| WAGO PFC100, PFC200, Compact Controller 100, EC 300 and TP 600 | — | firmware FW25 and earlier (CERT@VDE VDE-2023-026); no NVD CPE |
What does this mean for affected devices?
NVD's description: "An authenticated, remote attacker may use a stack based out-of-bounds write vulnerability in the CmpTraceMgr Component of multiple CODESYS products in multiple versions to write data into the stack which can lead to a denial-of-service condition, memory overwriting, or remote code execution." NVD's Primary score is CVSS v3.1 8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), the same as CERT@VDE's as CNA. The weakness NVD shows is CERT@VDE's CWE-787 (out-of-bounds write); CODESYS and CISA classify it as CWE-121 (stack-based buffer overflow). NVD's CPE configuration covers 17 CODESYS products: the runtime, HMI, Safety SIL2 and Development System lines before 3.5.19.0 and nine SL products before 4.8.0.0. The record was published on 2023-05-15 (NVD).
What is the flaw, and how was it exploited?
CODESYS Advisory 2023-02 (version 3.0, 3 April 2023) groups it with seven other CmpTraceMgr CVEs (CVE-2022-47382 to CVE-2022-47384 and CVE-2022-47386 to CVE-2022-47389): "after successful authentication, specific crafted communication requests can cause the CmpTraceMgr component to write attacker-controlled data to stack". Vladimir Tokarev of Microsoft found it, and CODESYS states that no known public exploits specifically target these CVEs in CODESYS products.
Microsoft's research post lists it with CVSS 8.8 and takes its example of the root cause from CmpTraceMgr itself: the TraceMgrAddNewRecordPartByTag method copies "the whole tag" from a request into a buffer "without validating the size", and Microsoft found the same issue in fifteen places in the CODESYS V3 SDK. Microsoft applied 12 of the buffer overflows to gain code execution on a Schneider Electric Modicon TM251 and a WAGO PFC200, after replaying credentials captured through CVE-2019-9013 to pass the login. The protocol runs on TCP ports 11740 to 11743 and UDP ports 1740 to 1743. The same advisory's denial-of-service flaw CVE-2022-47378 and the older unauthenticated web server overflow CVE-2020-10245 hit the same controllers.
Which devices embed the vulnerable runtime?
Vendor advisories name the devices, and they patch through their own firmware:
| Vendor | Products | Affected | Fix or mitigation |
|---|---|---|---|
| Rockwell Automation | LP30, LP40, LP50 and BM40 operator panels | CODESYS before 3.5.19.0 | Upgrade to CODESYS 3.5.19.2 (ICSA-24-030-07, 2024-01-30) |
| Schneider Electric | Modicon M241 and M251 | Firmware before 5.2.11.18 | Firmware delivered with EcoStruxure Machine Expert 2.2 (ICSA-26-020-02) |
| Schneider Electric | Modicon M262 | Firmware before 5.2.8.12 | Firmware delivered with Machine Expert 2.2 |
| Schneider Electric | PacDrive 3 LMC Eco/Pro/Pro2 | Firmware before 1.76.14.1 | Firmware delivered with Machine Expert 2.2 |
| Schneider Electric | Modicon M258 and LMC058 | All versions | No fixed version listed: user management, encrypted communication, restrict UDP/1740, TCP/11740 and TCP/1105 |
| WAGO | PFC100, PFC200, Compact Controller 100, EC 300, TP 600 | FW25 and earlier | Activate "port authentication" in web-based management and change the default admin password (VDE-2023-026) |
CISA's ICSA-26-020-02 (20 January 2026) is a verbatim republication of Schneider's SEVD-2023-192-04, first released on 11 July 2023 and revised as fixes reached each product line; it also covers Harmony and Magelis HMIs and the end-of-life Magelis XBT series, which gets no fix (CISA CSAF). WAGO's advisory gave Q1 2024 as the fix target for its firmware. Our CODESYS runtime vulnerabilities guide covers how to map a vendor firmware number to the CODESYS version it contains.
How do you fix or mitigate it?
CODESYS fixed it in 3.5.19.0 for Control RTE, Control Win, HMI, the Runtime System Toolkit, Safety SIL2 and the Development System's simulation runtime, and in 4.8.0.0 for the SL products, which are based on Runtime System Toolkit 3.5.19.0. Microsoft's advice is to identify the devices using CODESYS, ask each manufacturer which CODESYS version its firmware contains and update to 3.5.19.0 or later. Until then, a login is required, so enforced online user management protects; it is the default from 3.5.17.0. Pair it with encrypted communication, so a captured login cannot be replayed, and allow the CODESYS ports only from named engineering workstations.
CVE-2022-47390 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.01322, the 71st percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD: authenticated remote attacker, stack based out-of-bounds write in CmpTraceMgr, DoS, memory overwriting or RCE; NVD Primary and CERT@VDE CVSS v3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; CWE-787 (CERT@VDE); 17 CODESYS CPEs before 3.5.19.0 or 4.8.0.0; published 2023-05-15; status Analyzed. — NVD
- CODESYS Advisory 2023-02 v3.0 (3 April 2023): CVE-2022-47382 to 47384 and 47386 to 47390 CWE-121 in CmpTraceMgr, write attacker-controlled data to stack after authentication; CVSS 8.8; fixed in 3.5.19.0 and SL 4.8.0.0 (based on 3.5.19.0); login required; no known public exploits; discovered by Vladimir Tokarev (Microsoft). — CODESYS Advisory 2023-02
- Microsoft: CVE-2022-47390 CmpTraceMgr 8.8; TraceMgrAddNewRecordPartByTag copies the whole tag into the buffer without validating the size; same issue in fifteen places; 12 buffer overflows applied for RCE on Schneider Electric Modicon TM251 and WAGO PFC200 after replaying credentials via CVE-2019-9013; ports TCP 11740-11743, UDP 1740-1743; update to 3.5.19.0 or above. — Microsoft Security Blog
- ICSA-24-030-07 (2024-01-30): Rockwell LP30/LP40/LP50/BM40 Operator Panels <V3.5.19.0; upgrade to CODESYS 3.5.19.2; CWE-121 8.8. — CISA CSAF ICSA-24-030-07
- ICSA-26-020-02, republication of SEVD-2023-192-04: M241/M251 fixed 5.2.11.18, M262 5.2.8.12, PacDrive 3 LMC 1.76.14.1, M258 and LMC058 all versions with mitigations, Magelis XBT no fix. — CISA CSAF ICSA-26-020-02
- VDE-2023-026: WAGO CC100, EC 300, PFC100, PFC200, TP 600 firmware <= FW25 affected by CVE-2022-47390; mitigation port authentication, change default admin password. — CERT@VDE VDE-2023-026
- Not in the CISA KEV catalog, version 2026.11.17 (1,782 entries), checked 2026-11-18. — CISA KEV
- EPSS 0.01322, percentile 0.71394, dataset 2026-11-17. — FIRST EPSS

Related advisories
Sources
- NVD
- CODESYS Advisory 2023-02: Security update for CODESYS Control V3
- Microsoft Security Blog: Multiple high severity vulnerabilities in CODESYS V3 SDK (August 2023)
- CISA ICS Advisory ICSA-24-030-07: Rockwell Automation LP30/40/50 and BM40 Operator Interface
- CISA ICS Advisory ICSA-26-020-02: Schneider Electric devices using CODESYS Runtime
- CISA CSAF: ICSA-26-020-02 (machine-readable advisory)
- CERT@VDE VDE-2023-026: WAGO products with vulnerabilities in e!Runtime / CODESYS V3 Runtime
- CISA KEV
- FIRST EPSS
Frequently asked questions
Which CODESYS versions fix CVE-2022-47390?
CODESYS 3.5.19.0 for the runtime, HMI, Safety SIL2 and Development System products, and 4.8.0.0 for the SL products. Devices that embed CODESYS get the fix through the vendor's firmware, for example Schneider Electric Modicon M241 and M251 firmware 5.2.11.18 (per CODESYS Advisory 2023-02 and CISA ICSA-26-020-02).
Can CVE-2022-47390 lead to remote code execution?
Yes. CODESYS and NVD list denial of service, memory overwriting or remote code execution, and Microsoft gained code execution on a Modicon TM251 and a WAGO PFC200 with buffer overflows from the same research. It needs a login, which Microsoft obtained by replaying credentials through CVE-2019-9013 (per CODESYS Advisory 2023-02 and Microsoft).
How do I protect a controller against CVE-2022-47390 until its firmware is updated?
Enforce online user management with strong individual passwords, enable encrypted communication so captured logins cannot be replayed, and allow the CODESYS protocol ports (TCP 11740 to 11743, UDP 1740 to 1743) only from named engineering workstations. WAGO also advises activating port authentication (per CODESYS Advisory 2023-02, Microsoft and CERT@VDE VDE-2023-026).
Is CVE-2022-47390 in the CISA KEV catalog?
No, not as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.01322, the 71st percentile, in the 2026-11-17 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?