Security Advisory

CVE-2021-30188: CODESYS V2 Stack Overflow on WAGO PLCs

Last updated:
  • CVE-2021-30188

CVE-2021-30188 is a stack-based buffer overflow in the CODESYS V2 runtime system before V2.4.7.55. A crafted request to the runtime's communication server can crash the controller or run code on it. WAGO ships this runtime as CODESYS 2.3 on PFC200 controllers before firmware 03.06.19 (18) and on fourteen 750-8xx Ethernet Controllers. NVD scores it 9.8.

Vulnerability summary

CVSS base score

9.8

Critical 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-2021-30188 · Source: NVD

Affected components

ComponentCPEVersion range
WAGO PFC200 750-8202/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8202_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8203/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8203_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8204/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8204_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8206/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8206_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8207/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8207_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8208/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8208_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8210/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8210_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8211/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8211_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8212/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8212_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8213/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8213_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8214/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8214_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8216/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8216_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO PFC200 750-8217/xxx-xxx (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-8217_firmware:*:*:*:*:*:*:*:*before 03.06.19 (18); fixed in patch 03.06.19 (18) or FW19 (CERT@VDE VDE-2021-014, NVD before 03.06.19 (18))
WAGO Ethernet Controller 750-823 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-823_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
WAGO Ethernet Controller 750-829 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-829_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-831 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-831_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-832 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-832_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
WAGO Ethernet Controller 750-852 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-852_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-862 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-862_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
WAGO Ethernet Controller 750-880 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-880_firmware:*:*:*:*:*:*:*:*before FW16; fixed in FW16 or later (CERT@VDE VDE-2021-014, NVD before fw16)
WAGO Ethernet Controller 750-881 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-881_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-882 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-882_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-885 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-885_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-889 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-889_firmware:*:*:*:*:*:*:*:*before FW15; fixed in FW15 or later (CERT@VDE VDE-2021-014, NVD before fw15)
WAGO Ethernet Controller 750-890 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-890_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
WAGO Ethernet Controller 750-891 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-891_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
WAGO Ethernet Controller 750-893 (CODESYS 2.3 runtime)cpe:2.3:o:wago:750-893_firmware:*:*:*:*:*:*:*:*before FW08; fixed in FW08 or later (CERT@VDE VDE-2021-014, NVD before fw08)
CODESYS V2 Runtime Toolkit 32 bit full and PLCWinNTcpe:2.3:a:codesys:v2_runtime_system_sp:*:*:*:*:*:*:*:*before V2.4.7.55; fixed in V2.4.7.55 (CODESYS Advisory 2021-06, NVD before 2.4.7.55)

What does this mean for affected devices?

NVD describes the flaw in one line: "CODESYS V2 runtime system SP before 2.4.7.55 has a Stack-based Buffer Overflow." Its Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, v2 7.5) with CWE-787; the record was published on 2021-05-25 (NVD, CVE record). WAGO's CERT@VDE advisory uses the same 9.8 vector and CWE-787.

What does CODESYS say about the bug?

CODESYS Advisory 2021-06 groups CVE-2021-30188 with CVE-2021-30186 and CVE-2021-30195 in the communication server that talks to the CODESYS Development System. For this one it says "a crafted request may cause a stack-based buffer overflow", resulting in denial of service "or being utilized for remote code execution". It adds a condition that the NVD vector does not show: the crafted requests are only processed "if no online password is configured on the controller or if the attacker has previously successfully authenticated himself". CODESYS rates the advisory 8.8 (PR:L) for that reason. The fix is CODESYS Runtime Toolkit 32 bit full and PLCWinNT V2.4.7.55. Chen Jie of NSFOCUS and Denis Goryushev and Sergey Fedonin of Positive Technologies found it independently.

Which WAGO controllers are affected?

WAGO's VDE-2021-014, published on 2021-05-20 and revised on 2025-05-22 (CSAF), covers two families. PFC200 controllers 750-8202 to 750-8217 are affected before firmware 03.06.19 (18); WAGO released that patch in May 2021 and FW19 in August 2021. The older Ethernet Controllers are fixed in FW08 (750-823, 750-832, 750-862, 750-890, 750-891, 750-893), FW15 (750-829, 750-831, 750-852, 750-881, 750-882, 750-885, 750-889) or FW16 (750-880). NVD's CPE list uses the same per-model limits.

What should operators do?

Install the fixed firmware for each article number. Where that has to wait, WAGO's mitigations are to keep the device off untrusted networks and to "disable the CODESYS 2.3 Web-Visualisation and CODESYS 2.3 port 2455". Because CODESYS processes the crafted request without login when no online password is set, configure one on every CODESYS 2.3 controller. Port 2455 is the same unauthenticated runtime port behind CVE-2018-5459; the later CODESYS 2.3 denial of service CVE-2023-1620 reaches the same runtime. The WAGO PFC controller guide, the CODESYS runtime guide and the memory corruption fix guide give the wider picture.

CVE-2021-30188 is not in the CISA KEV catalog as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS gives it 0.0127, the 70.6th percentile, in the 2026-11-22 dataset (CISA KEV, FIRST EPSS).

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (read 2026-11-23): status Analyzed; published 2021-05-25; NVD Primary CVSS v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, v2 7.5; CWE-787; CPE codesys v2_runtime_system_sp before 2.4.7.55, WAGO 750-8202..750-8217 firmware before 03.06.19 (18), 750-8xx Ethernet Controllers before fw08/fw15/fw16. — NVD
  • CODESYS Advisory 2021-06 (published 25 October 2021, version 3.0): CVE-2021-30188 CWE-121 stack-based buffer overflow in the V2 communication server, DoS or remote code execution; requests processed only without an online password or after authentication; CVSS v3.0 8.8; fixed in Runtime Toolkit 32 bit full and PLCWinNT V2.4.7.55; found by Chen Jie (NSFOCUS), Denis Goryushev and Sergey Fedonin (Positive Technologies). — CODESYS Advisory 2021-06
  • CERT@VDE VDE-2021-014 (published 2021-05-20, updated 2025-05-22), HTML and CSAF read 2026-11-23: CVSS 9.8, CWE-787; PFC200 750-8202..8217 affected before 03.06.19 (18), fixed patch 03.06.19 (18) May 2021 and FW19 August 2021; Ethernet Controllers fixed in FW08/FW15/FW16; mitigation: disable the CODESYS 2.3 Web-Visualisation and port 2455. — CERT@VDE VDE-2021-014
  • CVE record (checked 2026-11-23): state PUBLISHED, assigner MITRE, published 2021-05-25. — CVE.org
  • Not in the CISA KEV catalog, catalog version 2026.11.20, 1,790 entries, checked 2026-11-23. — CISA KEV
  • EPSS 0.0127, percentile 0.70559, dataset 2026-11-22, read 2026-11-23. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CERT@VDE VDE-2021-014: WAGO multiple vulnerabilities in CODESYS Runtime 2.3
  3. CERT@VDE VDE-2021-014 CSAF (machine-readable advisory)
  4. CODESYS Advisory 2021-06: Security update for CODESYS Control V2 communication
  5. CVE.org record CVE-2021-30188
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which WAGO firmware fixes CVE-2021-30188?

For PFC200 750-8202 to 750-8217, patch 03.06.19 (18) or FW19. For the 750-8xx Ethernet Controllers, FW08, FW15 or FW16 depending on the article number (CERT@VDE VDE-2021-014).

Does an attacker need a login?

NVD scores it with no privileges required. CODESYS Advisory 2021-06 says the crafted request is only processed when no online password is configured or after the attacker has authenticated, so setting an online password narrows the exposure.

What can I do if I cannot update yet?

WAGO advises keeping the controller off untrusted networks and disabling the CODESYS 2.3 Web-Visualisation and CODESYS 2.3 port 2455. CODESYS lists no workaround beyond general defense measures.

Is CVE-2021-30188 in the CISA KEV catalog?

No, not as of 2026-11-23 (catalog version 2026.11.20, 1,790 entries). FIRST EPSS rates it 0.0127 (70.6th percentile) in the 2026-11-22 dataset.