Security Advisory

CVE-2022-47378: CODESYS CmpFiletransfer DoS

Last updated:
  • CVE-2022-47378

CVE-2022-47378 is an improper input validation flaw (CWE-20) in the CmpFiletransfer component of the CODESYS V3 runtime: after logging in, an attacker can send crafted file-transfer requests with inconsistent content that make the runtime read from an invalid address and crash the controller. It is fixed in CODESYS 3.5.19.0 and SL 4.8.0.0. NVD scores it 6.5.

Vulnerability summary

CVSS base score

6.5

Medium severity

EPSS score (FIRST)

0.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-47378 · Source: NVD

Affected components

ComponentCPEVersion range
CODESYS Control RTE (for Beckhoff CX) SL (CmpFiletransfer)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) (CmpFiletransfer)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 (CmpFiletransfer)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) (CmpFiletransfer)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) (CmpFiletransfer)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) (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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 (CmpFiletransfer)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: "Multiple CODESYS products in multiple versions are prone to a improper input validation vulnerability. An authenticated remote attacker may craft specific requests that use the vulnerability leading to a denial-of-service condition." NVD's Primary score is CVSS v3.1 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), the same as CERT@VDE's as CNA, and both list CWE-20. 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?

CODESYS Advisory 2023-02 (version 3.0, 3 April 2023) is more specific: "after successful authentication, specific crafted communication requests with inconsistent content can cause the CmpFiletransfer component to read internally from an invalid address, potentially leading to a denial-of-service condition". CODESYS classifies it as CWE-1288 (improper validation of consistency within input). It is one of 15 CVEs in that advisory, all in the communication servers for the CODESYS protocol, found by Vladimir Tokarev of Microsoft; this one jointly with Ramin Nafisi of Microsoft's MSTIC. Most of the others, such as the CmpTraceMgr stack overflow CVE-2022-47390, can lead to code execution; this one only stops the runtime, which on a PLC still stops the machine it controls. CODESYS states that no known public exploits specifically target these CVEs in CODESYS products.

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 for BeagleBone, emPC-A/iMX6, IOT2000, Linux, PFC100, PFC200, PLCnext, Raspberry Pi and WAGO Touch Panels 600. Exploitation needs a successful login, so CODESYS says online user management protects against it even without the update; it is enforced by default from 3.5.17.0. Make sure it is on, use strong individual passwords and encrypted communication, and remember that credentials captured through CVE-2019-9013 defeat the login on older runtimes. The unauthenticated web server overflow CVE-2020-10245 is a separate, older fix.

CVE-2022-47378 is not in the CISA KEV catalog as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.00906, the 60th percentile, in the 2026-11-17 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: authenticated remote attacker, crafted requests, denial of service; NVD Primary and CERT@VDE CVSS v3.1 6.5 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H; CWE-20 (both); 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-47378 CWE-1288, CmpFiletransfer reads from invalid address after authentication; fixed in 3.5.19.0 and SL 4.8.0.0; login required, online user management protects, enforced by default since 3.5.17.0; no known public exploits; discovered by Vladimir Tokarev and Ramin Nafisi (Microsoft). — CODESYS Advisory 2023-02
  • 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. — CISA CSAF ICSA-24-030-07
  • ICSA-26-020-02, republication of SEVD-2023-192-04 (initial 2023-07-11, current 2026-01-20): 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 (UDP/1740, TCP/11740, TCP/1105), Magelis XBT no fix. — CISA CSAF ICSA-26-020-02
  • VDE-2023-026: WAGO CC100, EC 300, PFC100, PFC200, TP 600 firmware <= FW25; mitigation: activate port authentication, change default admin password; fixed firmware target Q1 2024. — 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.00906, percentile 0.60453, dataset 2026-11-17. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CODESYS Advisory 2023-02: Security update for CODESYS Control V3
  3. CISA ICS Advisory ICSA-24-030-07: Rockwell Automation LP30/40/50 and BM40 Operator Interface
  4. CISA ICS Advisory ICSA-26-020-02: Schneider Electric devices using CODESYS Runtime
  5. CISA CSAF: ICSA-26-020-02 (machine-readable advisory)
  6. CERT@VDE VDE-2023-026: WAGO products with vulnerabilities in e!Runtime / CODESYS V3 Runtime
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

Which CODESYS versions fix CVE-2022-47378?

CODESYS 3.5.19.0 for the runtime, HMI, Safety SIL2 and Development System products, and 4.8.0.0 for the SL products such as Control for Linux SL or Control for PFC200 SL. Devices that embed CODESYS get the fix through the vendor's firmware (per CODESYS Advisory 2023-02 and NVD).

Can CVE-2022-47378 be exploited without a login?

No. CODESYS states that a successful login is required, so enforced online user management protects against it even before the update. A login captured from an older runtime through CVE-2019-9013 would meet that condition, so use encrypted communication as well (per CODESYS Advisory 2023-02).

Which vendor devices are affected by CVE-2022-47378?

Among others, Rockwell Automation LP30, LP40, LP50 and BM40 panels, Schneider Electric Modicon M241, M251, M262, M258, LMC058 and PacDrive 3 controllers, and WAGO PFC100, PFC200, CC100, EC 300 and TP 600 on FW25 and earlier (per CISA ICSA-24-030-07, ICSA-26-020-02 and CERT@VDE VDE-2023-026).

Is CVE-2022-47378 in the CISA KEV catalog?

No, not as of 2026-11-18 (catalog version 2026.11.17). FIRST EPSS gives it 0.00906, the 60th percentile, in the 2026-11-17 dataset (per CISA KEV and FIRST EPSS).